ListProjects: Allow to filter list by project state
Bug: Issue 7747 Change-Id: Ibf39b408fce8e76a61706ae45da433faaf0391f2
This commit is contained in:
@@ -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
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user