Best RESTful Method for Web Service

I am looking for a guide to the best REST / Json method to use in our production application. The script is the application ↔ web service ↔ server (lighttpd or nginx) ↔ our program database ↔ sql. Data traffic between Android and the server per call is quite small. There is no significant CRUD on the client.

I saw a presentation of Google IO 2010 (http://www.google.com/url?sa=D&q=http://dl.google.com/googleio/2010/android-developing-RESTful -android-apps.pdf) with 3 suggested templates (Service API, ContentProvider API, ContentProvider API and SyncAdapter). We briefly reviewed the iosched 2010/11 application, although we did not develop which of the three methods (if any) it implements.

We want to offer application users unhindered access by managing state to support various types of interrupts or failures. How can we determine what is the best REST method for our needs? Do Google suggestions hinder?

Thanks in advance!

+3
source share
1 answer

The correct answer depends on how much data and what operations we are talking about.

You wrote: "There is no significant CRUD on the client." If you use only “R” from “CRUD” (= read data from somewhere), and if your application is not really dependent on it, and you often don’t synchronize content, you can even leave by extracting its form inside your activity .

, , API- Service-get go-go. Google, , , REST - , .

, , , .

0

All Articles