Skip to content

Commit

Permalink
#129: Change name of ID parameters to correct case for Swagger docs
Browse files Browse the repository at this point in the history
- Swagger is case sensitive when using parameters
- This change means endpoints with an ID parameter (e.g. /users/{id}) will now work using the Swagger UI user input for said ID
  • Loading branch information
MRichards99 committed Jun 10, 2020
1 parent 05ad009 commit 203707f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/resources/entities/entity_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get(self, id):
parameters:
- in: path
required: true
name: ID
name: id
description: The id of the entity to retrieve
schema:
type: integer
Expand Down Expand Up @@ -204,7 +204,7 @@ def delete(self, id):
parameters:
- in: path
required: true
name: ID
name: id
description: The id of the entity to delete
schema:
type: integer
Expand Down Expand Up @@ -236,7 +236,7 @@ def patch(self, id):
parameters:
- in: path
required: true
name: ID
name: id
description: The id of the entity to update
schema:
type: integer
Expand Down
4 changes: 2 additions & 2 deletions src/resources/table_endpoints/table_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get(self, id):
parameters:
- in: path
required: true
name: ID
name: id
description: The id of the instrument to retrieve the facility cycles of
schema:
type: integer
Expand Down Expand Up @@ -145,7 +145,7 @@ def get(self, id):
parameters:
- in: path
required: true
name: ID
name: id
description: The id of the instrument to count the facility cycles of
schema:
type: integer
Expand Down

0 comments on commit 203707f

Please sign in to comment.