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

Grape::API versioning based on request parameter. #175

Merged
merged 1 commit into from
Jun 4, 2012

Conversation

jackcasey
Copy link
Contributor

Added an API versioner which searches for a named parameter (default is
'apiver') to find the specified api version. The name of the parameter
can be changed via the 'parameter' option when specifying the version.

Include all the same specs as already existed for the other versioners.
Update README markdown to explain this new versioning strategy.

Added an API versioner which searches for a named parameter (default is
'apiver') to find the specified api version. The name of the parameter
can be changed via the 'parameter' option when specifying the version.

Include all the same specs as already existed for the other versioners.
Update README markdown to explain this new versioning strategy.
@jackcasey
Copy link
Contributor Author

Implemented this for internal use and cleaned it up in case you wanted to merge it upstream.

Thank you for Grape!

@dblock
Copy link
Member

dblock commented May 25, 2012

I like it. @mbleigh and @jcc - comment?

@dblock
Copy link
Member

dblock commented Jun 4, 2012

This has been open for a while and nobody seems to be unhappy with it. Thank you, merging.

dblock added a commit that referenced this pull request Jun 4, 2012
Grape::API versioning based on request parameter.
@dblock dblock merged commit 3ac258c into ruby-grape:master Jun 4, 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