viezel / napp.alloy.adapter.restapi

RestAPI Sync Adapter for Titanium Alloy Framework
197 stars 102 forks source link

More docs? #46

Open justbane opened 10 years ago

justbane commented 10 years ago

Any way you can show some more examples. I get the one you have and have implemented it perfectly... however when trying to figure out how to use the adapter in a model things break down.

For instance using this as a model and not a collection is for some reason not working.

Could you give some quick examples of how to use this in a model context and send data using it as well?

Love to use this but need some more info if it's to be useful.

karol-may commented 10 years ago

Same here ....

dottodot commented 10 years ago

Me too, I'm trying to fetch a single model from the server and not having any luck what so ever.

developer82 commented 9 years ago

More docs could be nice :)

ToldYaOnce commented 9 years ago

@dottodot Try overriding the URL in your model. You can use it as a string url: "http://\ your url here **/", or as a function:

url: function(){ var rtr = "http://\ your url here **" + this.get("id"); // or something like this }