Skip to content

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

Open
Akkuma wants to merge 1 commit into
mtrpcic:masterfrom
Akkuma:master
Open

Added in the ability to "restfully" build urls with little work#2
Akkuma wants to merge 1 commit into
mtrpcic:masterfrom
Akkuma:master

Conversation

@Akkuma

@Akkuma Akkuma commented Jul 24, 2013

Copy link
Copy Markdown

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