Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add API(v2) to get all projects info
[yardstick.git]
/
api
/
database
/
v2
/
handlers.py
diff --git
a/api/database/v2/handlers.py
b/api/database/v2/handlers.py
index
095ad72
..
7aa02a0
100644
(file)
--- a/
api/database/v2/handlers.py
+++ b/
api/database/v2/handlers.py
@@
-130,6
+130,9
@@
class V2ContainerHandler(object):
class V2ProjectHandler(object):
+ def list_all(self):
+ return V2Project.query.all()
+
def insert(self, kwargs):
project = V2Project(**kwargs)
db_session.add(project)