From f48d1e6d406e4e093215d55cf504ed95c078e38b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 24 Dec 2019 08:59:17 -0500 Subject: [PATCH] Add documentation for API_Doc endpoint --- client-api/pvc-api.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index d1a8a567..0645bd0a 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -207,6 +207,15 @@ api.add_resource(API_Root, '/') # /doc class API_Doc(Resource): def get(self): + """ + Provide the Swagger API documentation + --- + tags: + - root + responses: + 200: + description: OK + """ swagger_data = swagger(pvc_api.app) swagger_data['info']['version'] = API_VERSION swagger_data['info']['title'] = "PVC Client and Provisioner API"