Nicholas Jones 7667a7b9af Fix pep8 errors
Fixes existing pep8 errors and reenables the corresponding tox rules

Change-Id: I4168a90c40173e4c35c9d75030cd592ace657508
2017-08-07 15:46:47 -05:00

30 lines
762 B
Python
Executable File

from cms_rest.controllers.v1 import root as v1
from pecan import expose
class RootController(object):
# url/v1/
v1 = v1.V1Controller()
@expose(template='json')
def _default(self):
"""Method to handle GET /
parameters: None
return: dict describing cms rest version information
"""
return {
"versions": {
"values": [
{
"status": "stable",
"id": "v1",
"links": [
{
"href": "http://localhost:7080/"
}
]
}
]
}
}