benpickles / js-model

Work with models in your JavaScript
http://benpickles.github.io/js-model/
MIT License
403 stars 42 forks source link

Test for custom REST code + example of single resource #24

Closed pablobm closed 12 years ago

pablobm commented 12 years ago

I was wondering how to make update() work with single resources (eg: /user as opposed to /users/343).

I realised I could use the methods parameter to the constructor of the REST class to do this. However, I noticed that this feature was not tested. Is it supposed to be used by the general public? Or is it "private"-ish? Is a test in order? Is this the way to accomplish my original goal?

benpickles commented 12 years ago

Thanks, yes that's exactly how you do it (currently...).