From b49297b8319327597e45c446157d4d9d60353ebf Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Sep 2014 23:06:57 +0530 Subject: [PATCH] Added rest functionality to the v2 apis Co-Authored-By: Digambar Patil Co-Authored-By: Steven Dake Change-Id: I96fa7cc8aa04f377422f6fc3c365368d0ee21645 --- containers/api/controllers/v2.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 containers/api/controllers/v2.py diff --git a/containers/api/controllers/v2.py b/containers/api/controllers/v2.py new file mode 100644 index 0000000000..2df0a078da --- /dev/null +++ b/containers/api/controllers/v2.py @@ -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"}