Skip to content

Commit

Permalink
#184: Make response descriptions have consistent syntax
Browse files Browse the repository at this point in the history
- The commit also includes a rebuilt openapi.yaml
  • Loading branch information
MRichards99 committed Dec 8, 2020
1 parent b01eaf5 commit fe88196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def post(self):
description: Session ID
example: xxxxxx-yyyyyyy-zzzzzz
400:
description: Bad request. User credentials not provided in request body
description: Bad request - User credentials not provided in request body
403:
description: Forbidden. User credentials were invalid
description: Forbidden - User credentials were invalid
"""
if not (
request.data and "username" in request.json and "password" in request.json
Expand Down
10 changes: 5 additions & 5 deletions datagateway_api/src/swagger/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ components:
schema:
type: integer
WHERE_FILTER:
description: Apply where filters to the query. The possible operators are like,
gte, lte, in and eq. Please modify the examples before executing a request
if you are having issues with the example values.
description: 'Apply where filters to the query. The possible operators are:
ne, like, lt, lte, gt, gte, in and eq. Please modify the examples before executing
a request if you are having issues with the example values.'
examples:
eq:
value:
Expand Down Expand Up @@ -10817,9 +10817,9 @@ paths:
type: object
description: Success - returns a session ID
'400':
description: Bad request. User credentials not provided in request body
description: Bad request - User credentials not provided in request body
'403':
description: Forbidden. User credentials were invalid
description: Forbidden - User credentials were invalid
security: []
summary: Login
tags:
Expand Down

0 comments on commit fe88196

Please sign in to comment.