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

API versioning #4

Open
xrmx opened this issue Jan 20, 2014 · 4 comments
Open

API versioning #4

xrmx opened this issue Jan 20, 2014 · 4 comments

Comments

@xrmx
Copy link
Contributor

xrmx commented Jan 20, 2014

I think the API should be versioned so that people that write clients do know exactly what is available in case of API changes on later releases.

@unbit
Copy link
Owner

unbit commented Jan 21, 2014

I think adding an header in the response with the api version could be a good solution:

X-uwsgi.it-Api-Version: 1

@xrmx
Copy link
Contributor Author

xrmx commented Jan 21, 2014

@unbit the issue is on the request side not on the response, the client should be able to do a request and know in advance the format, content, etc... of what is returned. So on the request side one should be able to ask for a specific version of the api

@unbit
Copy link
Owner

unbit commented Jan 21, 2014

ok, the same thing applies, it can add a request header specifying the version it expects

@xrmx
Copy link
Contributor Author

xrmx commented Jan 21, 2014

Sure, but wouldn't adding it to the url be easier to handle on your side?

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

No branches or pull requests

2 participants