Added rest functionality to the v2 apis

Co-Authored-By: Digambar Patil <digambarpat@gmail.com>
Co-Authored-By: Steven Dake <sdake@redhat.com>

Change-Id: I96fa7cc8aa04f377422f6fc3c365368d0ee21645
This commit is contained in:
root 2014-09-09 23:06:57 +05:30 committed by Davanum Srinivas (dims)
parent 3d15bd1ba8
commit b49297b831

View File

@ -0,0 +1,8 @@
import pecan
from pecan import rest
class VersionController(rest.RestController):
@pecan.expose('json')
def get(self):
return {"version":"2.0.0"}