]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/restful/api/__init__.py
1 from pecan
import expose
2 from pecan
.rest
import RestController
4 from config
import Config
5 from crush
import Crush
10 from request
import Request
11 from server
import Server
14 class Root(RestController
):
24 @expose(template
='json')
25 def get(self
, **kwargs
):
27 Show the basic information for the REST API
28 This includes values like api version or auth method
33 'Use "ceph restful create-key <key>" to create a key pair, '
34 'pass it as HTTP Basic auth to authenticate',
35 'doc': 'See /doc endpoint',
36 'info': "Ceph Manager RESTful API server",