-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Open
Labels
request matchingMatching requests to URL templates, media types, etc.Matching requests to URL templates, media types, etc.versioningdescribing versions of APIs/endpoints/operationsdescribing versions of APIs/endpoints/operations
Description
To facilitate the option of media-type versioning, it would be helpful to version at the path:method level. Here is the gist of my proposal: move version from root level to path:method level and represent as an array of versions. In making the change as described, my hope is that none of the existing functionality is sacrificed.
Single version example
/pets/{id}:
put:
tags:
- "pets"
versions:
- version: "default"
summary: "..."
description: "..."
... all other properties formerly defined in the path-item
Multiple version example
/pets/{id}:
put:
tags:
- "pets"
versions:
- version: "1"
summary: "..."
description: "..."
operationId: "updatePet_v1"
consumes:
- "application/json"
- "application/vnd.vendor.v1+json"
deprecated: true
... all other properties currently defined in the path-item
- version: "2"
summary: "..."
description: "..."
operationId: "updatePet_v2"
consumes:
- "application/vnd.vendor.v2+json"
... all other properties currently defined in the path-item
DanielYWoo, remenska, ThomasHagebols, bflaton, nicohaenggi and 20 more
Metadata
Metadata
Assignees
Labels
request matchingMatching requests to URL templates, media types, etc.Matching requests to URL templates, media types, etc.versioningdescribing versions of APIs/endpoints/operationsdescribing versions of APIs/endpoints/operations