ListProjects: Allow to filter list by project state

Bug: Issue 7747
Change-Id: Ibf39b408fce8e76a61706ae45da433faaf0391f2
This commit is contained in:
David Pursehouse
2017-11-28 13:37:48 +09:00
parent 1b1bb97571
commit 54508764eb
5 changed files with 88 additions and 13 deletions

View File

@@ -325,7 +325,8 @@ GET /projects/?type=PERMISSIONS HTTP/1.0
----
All::
Get all projects, including those whose state is "HIDDEN".
Get all projects, including those whose state is "HIDDEN". May not be used
together with the `state` option.
+
.Request
----
@@ -351,6 +352,30 @@ GET /projects/?all HTTP/1.0
}
----
State(s)::
Get all projects with the given state. May not be used together with the
`all` option.
+
.Request
----
GET /projects/?state=HIDDEN HTTP/1.0
----
+
.Response
----
HTTP/1.1 200 OK
Content-Disposition: attachment
Content-Type: application/json; charset=UTF-8
)]}'
{
"some-other-project": {
"id": "some-other-project",
"state": "HIDDEN"
}
}
----
[[query-projects]]
=== Query Projects
--