raigax9 db1447900b Updated import names to fully qualified names (id_generator)
Have most of the import names to be fully qualified names.

Change-Id: Ib89b6720d18c065f967bcd8737e41ecce123ca56
2017-08-22 20:53:45 +00:00

36 lines
923 B
Python
Executable File

import logging
import orm.services.id_generator.uuidgen.controllers.v1.root as root
from pecan import expose
from pecan.rest import RestController
LOG = logging.getLogger(__name__)
class RootController(RestController):
# url/v1/
v1 = root.RootController()
@expose(template='json')
def get(self):
"""Method to handle GET /
parameters: None
return: dict describing uuid command version information
"""
LOG.info("root -get versions")
return {
"versions": {
"values": [
{
"status": "stable",
"id": "v1",
"links": [
{
"href": "http://localhost:8090/"
}
]
}
]
}
}