Skip to content

Commit

Permalink
[#124] extracts 404 response into component
Browse files Browse the repository at this point in the history
  • Loading branch information
philherbert committed Sep 14, 2020
1 parent 1ee21d5 commit 468ce4f
Showing 1 changed file with 14 additions and 28 deletions.
42 changes: 14 additions & 28 deletions documents/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,7 @@ paths:
schema:
$ref: '#/components/schemas/OrganisationDetails'
404:
description: Organisation not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
$ref: '#/components/responses/NotFound'
post:
summary: Update an organization
tags:
Expand Down Expand Up @@ -164,11 +160,7 @@ paths:
204:
description: OK
404:
description: Organisation not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
$ref: '#/components/responses/NotFound'
/user:
post:
summary: Create a user
Expand Down Expand Up @@ -621,15 +613,7 @@ paths:
403:
$ref: '#/components/responses/AuthError'
404:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
example:
result: 'error'
message: 'The requested URL was not found on the server. If you entered the URL manually please check
your spelling and try again.'
$ref: '#/components/responses/NotFound'
429:
description: Exceeded rate or send limits
content:
Expand Down Expand Up @@ -679,15 +663,7 @@ paths:
403:
$ref: '#/components/responses/AuthError'
404:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
example:
result: 'error'
message: 'The requested URL was not found on the server. If you entered the URL manually please check
your spelling and try again.'
$ref: '#/components/responses/NotFound'
429:
description: Exceeded rate or send limits
content:
Expand Down Expand Up @@ -771,6 +747,16 @@ components:
example:
result: 'error'
message: 'Internal server error'
NotFound:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
example:
result: 'error'
message: 'The requested URL was not found on the server. If you entered the URL manually please check
your spelling and try again.'
schemas:
V2ErrorMessage:
description: Generic error message format for V2
Expand Down

0 comments on commit 468ce4f

Please sign in to comment.