Add policy design api documentation
[policy/parent.git] / docs / api / api.rst
index 7df880c..fb42e3e 100644 (file)
@@ -1,14 +1,38 @@
-.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. This work is licensed under a
+.. Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
 
 .. _api-label:
 
 Policy Lifecycle API
 --------------------
 .. toctree::
-   :maxdepth: 1
+   :maxdepth: 1 
 
+Global API Table
+--------------------
+.. csv-table::
+   :header: "API name", "Swagger JSON"
+   :widths: 10,5
+
+   "Healthcheck API", ":download:`link <healthcheck-api.json>`"
+   "Statistics API", ":download:`link <statistics-api.json>`"
+   "Tosca Policy Type API", ":download:`link <policytype-api.json>`"
+   "Tosca Policy API", ":download:`link <policy-api.json>`"
+   "Legacy Guard Policy API", ":download:`link <guard-policy-api.json>`"
+   "Legacy Operational Policy API", ":download:`link <operational-policy-api.json>`"
+
+API Swagger
+--------------------
+
+.. swaggerv2doc:: healthcheck-api.json
+
+.. swaggerv2doc:: statistics-api.json
 
+.. swaggerv2doc:: policytype-api.json
 
+.. swaggerv2doc:: policy-api.json
 
+.. swaggerv2doc:: guard-policy-api.json
 
-End of Document
+.. swaggerv2doc:: operational-policy-api.json