You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This is a question regarding #35.
I am curious about why you would want the keyword "latest" to be in the path, because it feels more natural that /api/endpoint serve the latest version of the API by default.
Describe the solution you'd like
If that is clear, i guess we can remove the keyword "latest" from the prefix in versioning.py, line 76, so anything from the default API direct to the latest API. Reference source code link:
modification:
if enable_latest:
prefix = "/"
......
Alternative option
The above question is actually from the concern whether I could set some version of API to be a generic API like...
suppose you have v1, v2, and v3 APIs where all have /items endpoint, and you want v2 to be accessible by default path like /items ( /items redirect to /v2/items )
Additional context
I would mainly want to know the decision behind the usage of the keyword; #35 describes the reason, but it's not really convincing to me and if the concern here is about serving the latest version to client, generic API call without any version, keyword, etc would be better for users and also for restfulness too.
The text was updated successfully, but these errors were encountered:
So i've been looking at this as well.
I think a better option would be to pass a "latest_prefix" as an argument or just simply honor the prefix when provided.
Is your feature request related to a problem? Please describe.
This is a question regarding #35.
I am curious about why you would want the keyword "latest" to be in the path, because it feels more natural that /api/endpoint serve the latest version of the API by default.
Describe the solution you'd like
If that is clear, i guess we can remove the keyword "latest" from the prefix in versioning.py, line 76, so anything from the default API direct to the latest API.
Reference source code link:
modification:
Alternative option
The above question is actually from the concern whether I could set some version of API to be a generic API like...
suppose you have v1, v2, and v3 APIs where all have /items endpoint, and you want v2 to be accessible by default path like /items ( /items redirect to /v2/items )
Additional context
I would mainly want to know the decision behind the usage of the keyword; #35 describes the reason, but it's not really convincing to me and if the concern here is about serving the latest version to client, generic API call without any version, keyword, etc would be better for users and also for restfulness too.
The text was updated successfully, but these errors were encountered: