Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2012

Conversation

pablobm
Copy link
Contributor

@pablobm pablobm commented Jul 4, 2012

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
Copy link
Owner

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

benpickles added a commit that referenced this pull request Jul 6, 2012
Test for custom REST code + example of single resource
@benpickles benpickles merged commit 73d3930 into benpickles:master Jul 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants