Api-ref: Add missing parameter in the version api

Add missing updated parameter in the version api.
besides, change media-types parameter in body and
required.

Change-Id: Ib0123f16a969ecc98f5dccd2a03eab621e02d8c8
This commit is contained in:
junboli 2018-07-16 16:57:45 +08:00 committed by Goutham Pacha Ravi
parent fb26e5211b
commit 7b8e6af033
2 changed files with 17 additions and 2 deletions

View File

@ -3736,6 +3736,12 @@ version_max:
If this version of the API supports microversions, the maximum If this version of the API supports microversions, the maximum
microversion that is supported. This will be the empty string if microversion that is supported. This will be the empty string if
microversions are not supported. microversions are not supported.
version_media_types:
description: |
Media types supported by the API.
in: body
required: true
type: object
version_min: version_min:
type: string type: string
in: body in: body
@ -3754,6 +3760,13 @@ version_status:
- ``CURRENT``: this is the preferred version of the API to use - ``CURRENT``: this is the preferred version of the API to use
- ``SUPPORTED``: this is an older, but still supported version of the API - ``SUPPORTED``: this is an older, but still supported version of the API
- ``DEPRECATED``: a deprecated version of the API that is slated for removal - ``DEPRECATED``: a deprecated version of the API that is slated for removal
version_updated:
description: |
A date and time stamp for API versions. This field presents no meaningful
information.
in: body
required: true
type: string
versions: versions:
type: array type: array
in: body in: body

View File

@ -46,9 +46,10 @@ Response
- versions: versions - versions: versions
- id: version_id - id: version_id
- updated: version_updated
- status: version_status - status: version_status
- links: links - links: links
- media-types: media_types - media-types: version_media_types
- version: version_max - version: version_max
- min_version: version_min - min_version: version_min
@ -103,8 +104,9 @@ Response
- status: version_status - status: version_status
- links: links - links: links
- version: version_max - version: version_max
- updated: version_updated
- min_version: version_min - min_version: version_min
- media-types: media_types - media-types: version_media_types
.. note:: .. note::