diff options
author | krishna moorthy <krishna.moorthy6@wipro.com> | 2020-09-07 14:00:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-07 14:00:04 +0000 |
commit | eaba24134a5a8124387b229dcc6cac53ad00d62c (patch) | |
tree | a80c8854f52501ccde42cb6b16b55ab2b8f85d3a /docs | |
parent | 7b7cfac3d2ae636f63c0e94df1a7129f2d10cb54 (diff) | |
parent | 1668918950d5590aab82710852257c8f8b89642d (diff) |
Merge "add support for common swagger style - add support for redoc"
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api/swagger/oof-optf-opteng-api.json (renamed from docs/sections/swaggerdoc/oof-optf-opteng-api.json) | 0 | ||||
-rw-r--r-- | docs/api/swagger/oof-osdf-has-api.json (renamed from docs/sections/swaggerdoc/oof-osdf-has-api.json) | 10 | ||||
-rw-r--r-- | docs/conf.py | 21 | ||||
-rw-r--r-- | docs/requirements-docs.txt | 1 | ||||
-rw-r--r-- | docs/sections/offeredapis.rst | 8 |
5 files changed, 33 insertions, 7 deletions
diff --git a/docs/sections/swaggerdoc/oof-optf-opteng-api.json b/docs/api/swagger/oof-optf-opteng-api.json index 4e77f76..4e77f76 100644 --- a/docs/sections/swaggerdoc/oof-optf-opteng-api.json +++ b/docs/api/swagger/oof-optf-opteng-api.json diff --git a/docs/sections/swaggerdoc/oof-osdf-has-api.json b/docs/api/swagger/oof-osdf-has-api.json index 7289ef4..a2fa43f 100644 --- a/docs/sections/swaggerdoc/oof-osdf-has-api.json +++ b/docs/api/swagger/oof-osdf-has-api.json @@ -1676,7 +1676,7 @@ }, "preferReuse": { "type": "boolean", - "description": "true if reusing an existing NSI is preferred/false if creating a new NSI is preferred " + "description": "true if reusing an existing NSI is preferred/false if creating a new NSI is preferred " }, "subnetCapabilities": { "type": "array", @@ -1716,9 +1716,9 @@ "properties": { "type": { "type": "string", - "enum": [ - "NSI", - "NSSI" + "enum": [ + "NSI", + "NSSI" ], "description": "indicates if the request is for NSI/NSSI termination" }, @@ -2004,7 +2004,7 @@ "properties": { "existingNSI": { "type": "boolean", - "description": "true if NSISolution object has shareNSISolution/false if NSISolution object has newNSISolution" + "description": "true if NSISolution object has shareNSISolution/false if NSISolution object has newNSISolution" }, "sharedNSISolution": { "$ref": "#/definitions/SharedNSISolution" diff --git a/docs/conf.py b/docs/conf.py index 5371015..59016f1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,6 +7,27 @@ linkcheck_ignore = [ 'http://localhost', ] +extensions = [ + 'sphinxcontrib.redoc', +] + +redoc = [ + { + 'name': 'OSDF API', + 'page': './osdf-api', + 'spec': './api/swagger/oof-osdf-has-api.json', + 'embed': True, + }, + { + 'name': 'OPTENG API', + 'page': './opteng-api', + 'spec': './api/swagger/oof-osdf-has-api.json', + 'embed': True, + } + ] + +redoc_uri = 'https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js' + intersphinx_mapping = {} html_last_updated_fmt = '%d-%b-%y %H:%M' diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt index b3188dd..1cb2382 100644 --- a/docs/requirements-docs.txt +++ b/docs/requirements-docs.txt @@ -12,4 +12,5 @@ sphinxcontrib-seqdiag sphinxcontrib-swaggerdoc sphinxcontrib-plantuml sphinx_bootstrap_theme +sphinxcontrib-redoc lfdocs-conf diff --git a/docs/sections/offeredapis.rst b/docs/sections/offeredapis.rst index 8269dea..c74b1b1 100644 --- a/docs/sections/offeredapis.rst +++ b/docs/sections/offeredapis.rst @@ -20,11 +20,15 @@ paste into the swagger tool here: https://editor.swagger.io OOF OSDF HAS API ................ -.. swaggerv2doc:: ./swaggerdoc/oof-osdf-has-api.json +.. raw:: html + + <a class="reference internal" href="../osdf-api.html">OSDF API</a> + OOF OPTENG API .............. -.. swaggerv2doc:: ./swaggerdoc/oof-optf-opteng-api.json +.. raw:: html + <a class="reference internal" href="../opteng-api.html">OPTENG API</a> |