users
Get requests for a specific user
Changed onRetrieves a user's requests in a JSON object.
get/user/{userId}/requests
Request
- Base URL: http://localhost:5055/api/v1
- URL: http://localhost:5055/api/v1/user/{userId}/requests
- Auth: one of:
- API key in cookie connect.sid
- API key in header X-Api-Key
Path parameters
userIdnumber required
Query parameters
takenumber nullable
Example:20
skipnumber nullable
Response
User's requests returned
Example response
{
"pageInfo": {
"page": 1,
"pages": 10,
"results": 100
},
"results": [
{
"id": 123,
"media": {
"createdAt": "2020-09-12T10:00:27.000Z",
"updatedAt": "2020-09-12T10:00:27.000Z"
},
"createdAt": "2020-09-12T10:00:27.000Z",
"updatedAt": "2020-09-12T10:00:27.000Z",
"requestedBy": {
"id": 1,
"email": "hey@itsme.com",
"userType": 1,
"createdAt": "2020-09-02T05:02:23.000Z",
"updatedAt": "2020-09-02T05:02:23.000Z",
"requestCount": 5
},
"modifiedBy": {
"id": 1,
"email": "hey@itsme.com",
"userType": 1,
"createdAt": "2020-09-02T05:02:23.000Z",
"updatedAt": "2020-09-02T05:02:23.000Z",
"requestCount": 5
}
}
]
}Changes
- info
added the optional property
//to the response with the status
- info