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

Use Versioncake for API versioning #2209

Closed
wants to merge 5 commits into from
Closed

Use Versioncake for API versioning #2209

wants to merge 5 commits into from

Conversation

LBRapid
Copy link
Member

@LBRapid LBRapid commented Nov 13, 2012

Getting rid of the v1 namespace and using versioncake to manage different versions of our API.

@bwillis
Copy link

bwillis commented Nov 17, 2012

Looks awesome, though I may be a little bias. Let @aantix or I know if you have any comments, questions or issues.

@BDQ
Copy link
Member

BDQ commented Nov 21, 2012

I'm happy to see this merged, @radar do you have any input?

@@ -6,6 +6,9 @@ class Engine < Rails::Engine
isolate_namespace Spree
engine_name 'spree_api'

config.view_versions = [1]
config.view_version_extraction_strategy = :http_parameter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an invalid value. Valid ones are :query_parameter, :http_header and http_accept_parameter. I assume you mean http_header?

@LBRapid LBRapid closed this Nov 21, 2012
LBRapid added a commit that referenced this pull request Nov 21, 2012
Fixes #2209

* Unversion zones controller so it can be used with Versioncake for testing purposes
* Zones controller using versioncake for versioning
* Move other controllers so they make use of Versioncake
* Rename all views to make use of Versioncake
* No v2 of api yet
@radar
Copy link
Contributor

radar commented Nov 21, 2012

Added to master and split_core.

LBRapid added a commit that referenced this pull request Nov 21, 2012
Fixes #2209

* Unversion zones controller so it can be used with Versioncake for testing purposes
* Zones controller using versioncake for versioning
* Move other controllers so they make use of Versioncake
* Rename all views to make use of Versioncake
* No v2 of api yet

Conflicts:

	api/app/controllers/spree/api/v1/base_controller.rb
	api/app/controllers/spree/api/v1/taxonomies_controller.rb
	api/app/controllers/spree/api/v1/taxons_controller.rb
	api/app/views/spree/api/products/index.v1.rabl
	api/config/routes.rb
	api/spree_api.gemspec
@nesquena
Copy link
Contributor

Really like this approach combining with versioncake, will definitely start recommending people to use versioncake in conjunction with RABL

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.

None yet

5 participants