initial code repo
[stor4nfv.git] / src / ceph / src / pybind / mgr / restful / api / doc.py
diff --git a/src/ceph/src/pybind/mgr/restful/api/doc.py b/src/ceph/src/pybind/mgr/restful/api/doc.py
new file mode 100644 (file)
index 0000000..96e4d6a
--- /dev/null
@@ -0,0 +1,15 @@
+from pecan import expose
+from pecan.rest import RestController
+
+from restful import module
+
+import restful
+
+
+class Doc(RestController):
+    @expose(template='json')
+    def get(self, **kwargs):
+        """
+        Show documentation information
+        """
+        return module.instance.get_doc_api(restful.api.Root)