summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/restful/api/doc.py
blob: f1038c21b1642fcdacfe3d5aa42a8daed9119e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)