Get users by projectId
GET/users/by/project/:projectId
Get users by projectId
Request
Path Parameters
The unique identifier for the project
Query Parameters
Possible values: >= 1
Default value: 1
Specify the page number for pagination (default is 1).
Default value: 10
Specify the number of projects per page (default is 10, 0 gets all results).
Possible values: [activePoints
, totalPoints
]
Field to order the results by (e.g., 'activePoints', 'totalPoints'). Default is 'totalPoints'.
Possible values: [asc
, desc
]
Default value: desc
'asc' for ascending or 'desc' for descending order. Default is 'desc'.
Responses
- 200
- 403
- 404
- 500
Users retrieved successfully
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The number of active points the user has
The username of the user
The avatar URL of the user
The total number of points the user has
The number of quests the user has completed
The ID of the user
[
{
"activePoints": 0,
"username": "string",
"avatar": "string",
"totalPoints": 0,
"userQuestCount": 0,
"cognitoUserId": "string"
}
]
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Internal Server Error"
}