VB-13: Add new endpoint to get a request by ID
Closed this issue · 2 comments
alexciornii commented
GET /api/requests/{request_id}
Media type: Application/json
Path parameters:
- request_id
Responses:
200: Request object found
Example value:
{
"id": "1",
"beneficiary": "beneficiary_id",
"user": "user_id",
"status": "new",
"secret": "string",
"urgent": false,
"comments": "string",
"has_symptoms": false,
"cluster": "cluster_id",
"created_at": "2020-09-10T21:31:16.741Z"
}
400: Bad request
Example value:
{
"code": "string",
"message": "string"
}
401: Unauthorized Access
Example value:
Unauthorized Access
RomanCudreavtev commented
Please sign on me.
johnsmithm commented
i added the functionality in the endpoint /api/request/filters/1/5?id=aasdadadsa
in #115 , I think it is enough. @alexciornii what do you think?