[bugfix] Updated 400 response specification with ref and fixed incorrect definition.

EH/population-statistics-authorisation
Eric Hoekstra 2 years ago
parent b58a4f0a20
commit 1b1a7fa38b

@ -61,6 +61,8 @@ get:
- {visits: 1, frequency: 355} - {visits: 1, frequency: 355}
- {visits: 2, frequency: 240} - {visits: 2, frequency: 240}
- {visits: 4, frequency: 25} - {visits: 4, frequency: 25}
400:
$ref: '../zoo-api.yaml#/components/responses/ReqFailure'
401: 401:
$ref: '../zoo-api.yaml#/components/responses/JwtFailure' $ref: '../zoo-api.yaml#/components/responses/JwtFailure'
403: 403:

@ -79,6 +79,8 @@ get:
- S74.02 - S74.02
- Y07.00 - Y07.00
- K87.00 - K87.00
400:
$ref: '../zoo-api.yaml#/components/responses/ReqFailure'
401: 401:
$ref: '../zoo-api.yaml#/components/responses/JwtFailure' $ref: '../zoo-api.yaml#/components/responses/JwtFailure'
403: 403:

@ -98,6 +98,8 @@ get:
n: n:
type: number type: number
example: 54 example: 54
400:
$ref: '../zoo-api.yaml#/components/responses/ReqFailure'
401: 401:
$ref: '../zoo-api.yaml#/components/responses/JwtFailure' $ref: '../zoo-api.yaml#/components/responses/JwtFailure'
403: 403:

@ -86,7 +86,7 @@ get:
description: "The number of unique patients in the group." description: "The number of unique patients in the group."
example: 7 example: 7
400: 400:
description: "Common HTTP semantics, see the response body." $ref: '../zoo-api.yaml#/components/responses/ReqFailure'
401: 401:
$ref: '../zoo-api.yaml#/components/responses/JwtFailure' $ref: '../zoo-api.yaml#/components/responses/JwtFailure'
403: 403:

@ -46,7 +46,7 @@ get:
minimum: 0 minimum: 0
example: 0 example: 0
400: 400:
description: "Common HTTP semantics, see the response body." $ref: '../zoo-api.yaml#/components/responses/ReqFailure'
401: 401:
$ref: '../zoo-api.yaml#/components/responses/JwtFailure' $ref: '../zoo-api.yaml#/components/responses/JwtFailure'
403: 403:

@ -148,16 +148,16 @@ components:
type: string type: string
responses: responses:
ReqFailure: ReqFailure:
description: |- description: The request isn't valid; for example, it is missing a required parameter.
The request isn't valid; for example, it is missing a required parameter. content:
content: application/json:
application/json: schema:
type: object type: object
properties: properties:
err: err:
description: A plain text explanation of what's wrong with the request description: A plain text explanation of what's wrong with the request
type: string type: string
example: Either pu or bsn query parameter needs to be present and not blank. example: Either x or y query parameter needs to be present and not blank.
JwtFailure: JwtFailure:
description: |- description: |-
The JWT token isn't valid or wasn't provided. The JWT token isn't valid or wasn't provided.

Loading…
Cancel
Save