From 5b30c390fd20da203a05385d1b7741d4caf43256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 27 Aug 2018 17:25:52 +0200 Subject: [PATCH] Add 500 server internal error --- docs/reference/swagger.yaml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/docs/reference/swagger.yaml b/docs/reference/swagger.yaml index 523fd4ce..c763ea85 100644 --- a/docs/reference/swagger.yaml +++ b/docs/reference/swagger.yaml @@ -80,6 +80,8 @@ paths: $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -117,6 +119,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -153,6 +157,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -189,6 +195,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -251,6 +259,8 @@ paths: $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyQueryParam: [] - ApiKeyHTTPBasicAuth: [] @@ -327,6 +337,8 @@ paths: $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyQueryParam: [] - ApiKeyHTTPBasicAuth: [] @@ -357,6 +369,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyQueryParam: [] - ApiKeyHTTPBasicAuth: [] @@ -386,6 +400,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyQueryParam: [] - ApiKeyHTTPBasicAuth: [] @@ -464,6 +480,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyQueryParam: [] - ApiKeyHTTPBasicAuth: [] @@ -505,6 +523,8 @@ paths: $ref: '#/components/responses/BadRequest' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' x-code-samples: - lang: Curl source: | @@ -552,6 +572,8 @@ paths: $ref: '#/components/responses/BadRequest' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' x-code-samples: - lang: Curl source: | @@ -590,6 +612,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -632,6 +656,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -669,6 +695,8 @@ paths: $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' security: - ApiKeyHTTPBasicAuth: [] - ApiKeyQueryParam: [] @@ -1397,8 +1425,10 @@ components: type: string description: Name of the requested template responses: + InternalServerError: + description: Server encountered an unexpected condition that prevented it from fulfilling the request. BadRequest: - description: The server could not understand the request due to invalid syntax. + description: The server could not understand the request due to invalid syntax or unexpected condition. NotFound: description: The specified resource was not found Unauthorized: