diff --git a/openapi/components/parameters/file.yaml b/openapi/components/parameters/file.yaml index 227e1dd..3dd566f 100644 --- a/openapi/components/parameters/file.yaml +++ b/openapi/components/parameters/file.yaml @@ -1,8 +1,8 @@ name: file -in: header -required: false +in: path +required: true description: | - `file` header is used to indicate the file that needs to be retrieved form the object structure. + `file` parameter is used to indicate the file that needs to be retrieved form the object structure. schema: type: string examples: diff --git a/openapi/paths/health.yaml b/openapi/paths/health.yaml index 55f3670..926efce 100644 --- a/openapi/paths/health.yaml +++ b/openapi/paths/health.yaml @@ -20,6 +20,8 @@ get: application/json: schema: $ref: ../components/schemas/health.yaml + '400': + $ref: ../components/responses/error400.yaml '500': $ref: ../components/responses/error500.yaml '503': diff --git a/openapi/paths/version.yaml b/openapi/paths/version.yaml index 47cd72b..f45cbd2 100644 --- a/openapi/paths/version.yaml +++ b/openapi/paths/version.yaml @@ -20,6 +20,8 @@ get: application/json: schema: $ref: ../components/schemas/version.yaml + '400': + $ref: ../components/responses/error400.yaml '500': $ref: ../components/responses/error500.yaml '503':