summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/restful/api/doc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/restful/api/doc.py')
-rw-r--r--src/pybind/mgr/restful/api/doc.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pybind/mgr/restful/api/doc.py b/src/pybind/mgr/restful/api/doc.py
new file mode 100644
index 00000000..f1038c21
--- /dev/null
+++ b/src/pybind/mgr/restful/api/doc.py
@@ -0,0 +1,15 @@
+from pecan import expose
+from pecan.rest import RestController
+
+from restful import context
+
+import restful
+
+
+class Doc(RestController):
+ @expose(template='json')
+ def get(self, **kwargs):
+ """
+ Show documentation information
+ """
+ return context.instance.get_doc_api(restful.api.Root)