summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
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.py21
-rw-r--r--docs/requirements-docs.txt1
-rw-r--r--docs/sections/offeredapis.rst8
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>