This repository was archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
VB 22 - correct swagger data #118
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershacktoberfesthelp wantedExtra attention is neededExtra attention is neededhight priority
Description
some of the routes parameters and return object are not set the right way, the input json for a post endpoint and the data in the database are not the same format, for example at the /api/request, in the endpoint for POST we have just:
{
"beneficiary": "123456",
"type":"grocery",
"status": "new",
"secret": "345%443$$",
"urgent": false,
"comments": "string",
"has_symptoms": false
}
but in the swagger is indicated:
{
"beneficiary": 0,
"status": "new",
"secret": "string",
"urgent": true,
"comments": "string",
"has_symptoms": true,
"cluster": 0,
"created_at": "2020-10-17T20:43:18.965Z"
}
also, need to add the type property.
location: static/swagger.yml
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershacktoberfesthelp wantedExtra attention is neededExtra attention is neededhight priority