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

Versioning in headers #52

Open
olaf7 opened this issue Jul 5, 2021 · 2 comments
Open

Versioning in headers #52

olaf7 opened this issue Jul 5, 2021 · 2 comments

Comments

@olaf7
Copy link

olaf7 commented Jul 5, 2021

This website: https://restfulapi.net/ is a nice write up to discuss REST API with references to Fielding's dissertation.
They also have a page on versioning where a paragraph on URI versioning suggests to use headers instead of URIs.
It would be nice if fastapi-versioning would support this.
See: https://restfulapi.net/versioning/

@dirkbrnd
Copy link

I also want to do this! I.e. pass a version=2020-01-01 header and have the application route to a different endpoint, even if that has to be on a different URL internally, thats fine. As long as the external-facing URL is without a version.

@HHK1
Copy link

HHK1 commented Jan 28, 2022

Posted something on a FastAPI issue here to showcase how it could be done: fastapi/fastapi#3910 (comment)

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

3 participants