Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

VB 22 - correct swagger data #118

@johnsmithm

Description

@johnsmithm

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions