
This change is going to upgrade ranger to use Python 3.x Change-Id: I563661e071c56c2df7e0e1a6e365aecd4158b6cd
39 lines
1.0 KiB
Python
Executable File
39 lines
1.0 KiB
Python
Executable File
from .configuration import ConfigurationController
|
|
from .lcp_controller import LcpController
|
|
from .logs import LogsController
|
|
|
|
import orm.base_config as config
|
|
|
|
from orm.services.region_manager.rms.controllers.v2 import root
|
|
from pecan import expose
|
|
|
|
|
|
class RootController(object):
|
|
lcp = LcpController()
|
|
logs = LogsController()
|
|
configuration = ConfigurationController()
|
|
v2 = root.V2Controller()
|
|
|
|
@expose(template='json')
|
|
def _default(self):
|
|
"""Method to handle GET
|
|
|
|
parameters: None
|
|
return: dict describing lcp rest version information
|
|
"""
|
|
return {
|
|
"versions": {
|
|
"values": [
|
|
{
|
|
"status": "stable",
|
|
"id": "v2",
|
|
"links": [
|
|
{
|
|
"href": config.rms['base_url']
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|