Replies: 2 comments 4 replies
-
|
hi @armen-ch , In my experience, for such a use-case tend to include the version in the operation path. Example: http://somehost/v2/endpoint BasePath: http://somehost /v1/endpoint:
get:
description: Version 1 of the endpoint, returns all
responses:
/v2/endpoint:
get:
description: Version 2 of the endpoint, returns all
responses: |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
@savage-alex, curious how you would handle this case of versioning as part of the base URL? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I have an OpenAPI spec with paths having v1 basePath excluding 2 of them. POST actions of those have v2 as basePath.
How can I setup Portman configuration to generate Postman collection which will have the appropriate request urls with v2 basePath for the aforementioned 2 POST actions (like
http://somehost/v2/endpoint) and with v1 for the rest (likehttp://somehost/v1/endpoint)?I know this is not a good practice to use different basePaths for the same service and moreover OAS 3 utilizes servers url instead of the "host", "basePath" and "schemes" keywords used in OpenAPI 2.0 but this is what I have.
Beta Was this translation helpful? Give feedback.
All reactions