From 7b8e6af033813b9632463db4dafd9be0a8394d2c Mon Sep 17 00:00:00 2001 From: junboli Date: Mon, 16 Jul 2018 16:57:45 +0800 Subject: [PATCH] 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 --- api-ref/source/parameters.yaml | 13 +++++++++++++ api-ref/source/versions.inc | 6 ++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 17e4b8835c..ab59060da5 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -3736,6 +3736,12 @@ version_max: If this version of the API supports microversions, the maximum microversion that is supported. This will be the empty string if microversions are not supported. +version_media_types: + description: | + Media types supported by the API. + in: body + required: true + type: object version_min: type: string in: body @@ -3754,6 +3760,13 @@ version_status: - ``CURRENT``: this is the preferred version of the API to use - ``SUPPORTED``: this is an older, but still supported version of the API - ``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: type: array in: body diff --git a/api-ref/source/versions.inc b/api-ref/source/versions.inc index 9dadfb4e52..5f875b36c5 100644 --- a/api-ref/source/versions.inc +++ b/api-ref/source/versions.inc @@ -46,9 +46,10 @@ Response - versions: versions - id: version_id + - updated: version_updated - status: version_status - links: links - - media-types: media_types + - media-types: version_media_types - version: version_max - min_version: version_min @@ -103,8 +104,9 @@ Response - status: version_status - links: links - version: version_max + - updated: version_updated - min_version: version_min - - media-types: media_types + - media-types: version_media_types .. note::