This documentation covers Review Board 1.5.
You can select a version above or
view the latest documentation.
Count Review Requests to User
| Path: | api/json/reviewrequests/to/user/{username}/count/ |
URL Parameters
| Parameter |
Type |
Description |
| username |
String |
The name of the user. |
HTTP GET
Returns the number of public review requests on the server that have been sent
directly or indirectly to the specified user. Review requests listing the
user as a reviewer will be returned, as will review requests listing any
group that the user belongs to.
Request Parameters
| Parameter |
Type |
Description |
| status
(optional) |
String |
The status of the review requests to return.
This can be one of: pending, submitted,
discarded or all. This defaults to
pending. |
Example Request
GET /api/json/reviewrequests/to/user/bob/count/?status=pending
Responses
HTTP 200: Success
| Field |
Type |
Description |
| count |
Integer |
The number of review requests. |
Example Response
{
stat: "ok",
count: 10
}
HTTP 401: Unauthorized
Error 103: Not Logged In
The client making the request is not logged in and the server disallows
anonymous access.
See Authenticating for more information.