From 6dcab2c56e0adda26d52c3f13f4769780b7399a0 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Wed, 17 Apr 2019 11:42:03 -0400 Subject: [PATCH] Use swagger2doc Change-Id: Ie400e782c7fa2720bb7e60ea37eca30a252e16db Signed-off-by: dglFromAtt Issue-ID: DMAAP-922 --- docs/api-table.rst | 10 +++++++--- docs/dbcapi-gen.rst | 5 +++++ docs/index.rst | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 docs/dbcapi-gen.rst diff --git a/docs/api-table.rst b/docs/api-table.rst index 9979d94..12a3b32 100644 --- a/docs/api-table.rst +++ b/docs/api-table.rst @@ -1,9 +1,13 @@ -.. This work is licensed under a Creative Commons Attribution 4.0 International License. +DMaaP Bus Controller REST API Download docs +=========================================== + +.. toctree:: + :maxdepth: 3 .. this table is provided to allow for download of API documentation in diff formats -..csv-table:: +.. csv-table:: :header: "API name", "Swagger JSON" :widths: 10,5 - "DMaaP Buscontroller API", ":download:`link swagger.json`" + "DMaaP Buscontroller API", ":download:`link `" diff --git a/docs/dbcapi-gen.rst b/docs/dbcapi-gen.rst new file mode 100644 index 0000000..48378ca --- /dev/null +++ b/docs/dbcapi-gen.rst @@ -0,0 +1,5 @@ +DMaaP Bus Controller REST API 1.1.0 swagger2doc +=============================================== + + +.. swaggerv2doc:: swagger.json diff --git a/docs/index.rst b/docs/index.rst index 352631d..c202dbc 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,4 +4,5 @@ :maxdepth: 1 api-table + dbcapi-gen api -- 2.16.6