napp.alloy.adapter.restapi icon indicating copy to clipboard operation
napp.alloy.adapter.restapi copied to clipboard

More docs?

Open justbane opened this issue 10 years ago • 4 comments

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.

justbane avatar Sep 15 '14 20:09 justbane

Same here ....

karol-may avatar Sep 16 '14 08:09 karol-may

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

dottodot avatar Sep 22 '14 16:09 dottodot

More docs could be nice :)

developer82 avatar Nov 10 '14 09:11 developer82

@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 }

ToldYaOnce avatar Nov 10 '14 14:11 ToldYaOnce