Add API call to return task statuses

/v1/task_statuses will return the list of task statuses to the
webclient. They are still hardcoded as enum in server, but add
the ability to return this enum to the webclient so we get rid
of hardcoding that constants on the web side.
In later steps we could replace the enum in the server for a
proper table that can be maintained by admins, but it has some
implications about how to group tasks in the api, how to make
a difference between special states such as todo, merged, etc...

Change-Id: I16cc7886f69fdefe05808af5035859fd818f3492
This commit is contained in:
Yolanda Robla
2014-11-18 11:35:44 +01:00
parent ed58fd8670
commit 6667c6e6b9
5 changed files with 56 additions and 2 deletions

View File

@@ -329,3 +329,8 @@ class AccessToken(base.APIBase):
user_id=1,
access_token="a_unique_access_token",
expires_in=3600)
class TaskStatus(base.APIBase):
key = wtypes.text
name = wtypes.text