.. _api-swagger-guide:
-API documentation
+API Documentation
=================
Swagger
- myAPI1.json
- myAPI2.json
-Global API table
+Global API Table
----------------
It is recommended to list the following API available with an access to the
Swagger JSON files to help the developers/users to play with JSON.
:header: "API name", "Swagger JSON"
:widths: 10,5
- "myAPI1", ":download:`link <myAPI1.json>`"
- "myAPI12", ":download:`link <myAPI2.json>`"
+ "myAPI1", ":download:`link <media/myAPI1.json>`"
+ "myAPI12", ":download:`link <media/myAPI2.json>`"
.. note::
During documentation merge/publish at RTD, any file referenced in an RST file with
.. note::
swaggerv2doc directive may generate errors when Swagger file contains specific
- information. In such case, do not use this direcive.
+ information. In such case, do not use this directive.
.. code:: rst
myAPI1
......
-.. swaggerv2doc:: myAPI1.json
+.. swaggerv2doc:: media/myAPI1.json
myAPI2
......
-.. swaggerv2doc:: myAPI2.json
+.. swaggerv2doc:: media/myAPI2.json