From c4d648d3e52096995096439d6e5bb0056e9372e7 Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Mon, 4 Apr 2016 15:39:55 -0500 Subject: [PATCH] Edits to fix makeswagger error "WARNING No tags for method listVersions" Also updates the tools/build-api-ref-swagger.sh script so that the errant WADL file name is output. Change-Id: I312c0be565983950a9fce0f6d653eacdcef2695c --- api-ref/src/docbkx/ch_share-v2.xml | 8 +++++--- api-ref/src/wadls/share-api/src/v2/wadl/os-share-v2.wadl | 5 ++--- tools/build-api-ref-swagger.sh | 7 +++++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/api-ref/src/docbkx/ch_share-v2.xml b/api-ref/src/docbkx/ch_share-v2.xml index 7500fab48..c2681ed69 100644 --- a/api-ref/src/docbkx/ch_share-v2.xml +++ b/api-ref/src/docbkx/ch_share-v2.xml @@ -45,16 +45,18 @@ History of all Manila API changes. - +
API extensions diff --git a/api-ref/src/wadls/share-api/src/v2/wadl/os-share-v2.wadl b/api-ref/src/wadls/share-api/src/v2/wadl/os-share-v2.wadl index ee31fcf03..37800ce26 100644 --- a/api-ref/src/wadls/share-api/src/v2/wadl/os-share-v2.wadl +++ b/api-ref/src/wadls/share-api/src/v2/wadl/os-share-v2.wadl @@ -20,13 +20,12 @@ The HTTP header to specify a valid Shared File Systems API - micro-version. For example, "X-Openstack-Manila-Api-Version: - 2.15". If you omit this header, the default micro- version is + microversion. For example, "X-Openstack-Manila-Api-Version: + 2.6". If you omit this header, the default microversion is 2.0. - &tenant_idTemplateParameter; diff --git a/tools/build-api-ref-swagger.sh b/tools/build-api-ref-swagger.sh index c35e53a33..9bcd6b982 100755 --- a/tools/build-api-ref-swagger.sh +++ b/tools/build-api-ref-swagger.sh @@ -25,8 +25,11 @@ function convert_to_swagger { find api-ref/src/docbkx/ -name api-ref-\* -type f -exec fairy-slipper-docbkx-to-json -o swagger {} \; # Generate Swagger - find swagger -name api-ref\*json -type f -exec fairy-slipper-wadl-to-swagger-valid -o swagger {} \; - + for file in swagger/*.json + do + echo $file + fairy-slipper-wadl-to-swagger-valid $file -o swagger + done # Remove interim JSON files rm -r swagger/api-ref*