Skip to content
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

Added in the ability to "restfully" build urls with little work #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Akkuma
Copy link

@Akkuma Akkuma commented Jul 24, 2013

This is actually being used in a real product. I changed the api signature as I felt it was "broken". I didn't want to continually declare url = '', which would look like .get('',data) and my urls were automatically being built for me via convention through the data.

By building the url restfully you can simplify code like users.get({id: 10}) and have that map to /users/10 all without extra work.

@Akkuma Akkuma mentioned this pull request Jul 24, 2013
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.

1 participant