-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Story/ccls-1998_2013_15 opponents endpoints (#25)
* story(ccls-1998): add opponent endpoints * story(ccls-1998): correct integration test sql * story(ccls-1998): correct integration tests * story(ccls-1998): remove boolean defaults
- Loading branch information
Showing
22 changed files
with
1,031 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -866,7 +866,7 @@ paths: | |
$ref: "#/components/schemas/priorAuthority" | ||
responses: | ||
'201': | ||
description: 'Case added successfully' | ||
description: 'Prior Authority added successfully' | ||
'400': | ||
description: 'Bad request' | ||
'401': | ||
|
@@ -941,6 +941,138 @@ paths: | |
'500': | ||
description: 'Internal server error' | ||
|
||
/applications/{id}/opponents: | ||
get: | ||
tags: | ||
- opponents | ||
summary: 'Get an application''s opponents' | ||
operationId: 'getApplicationOpponents' | ||
parameters: | ||
- name: 'id' | ||
in: 'path' | ||
required: true | ||
schema: | ||
type: 'integer' | ||
format: 'int64' | ||
example: '1234567890' | ||
responses: | ||
'200': | ||
description: 'Successful operation' | ||
content: | ||
application/json: | ||
schema: | ||
type: 'array' | ||
items: | ||
$ref: "#/components/schemas/opponent" | ||
'400': | ||
description: 'Bad request' | ||
'401': | ||
description: 'Unauthorized' | ||
'404': | ||
description: 'Not found' | ||
'500': | ||
description: 'Internal server error' | ||
post: | ||
tags: | ||
- opponents | ||
summary: 'Add an opponent to an application' | ||
operationId: 'addApplicationOpponent' | ||
parameters: | ||
- name: 'id' | ||
in: 'path' | ||
required: true | ||
schema: | ||
type: 'integer' | ||
format: 'int64' | ||
- name: 'Caab-User-Login-Id' | ||
in: header | ||
required: true | ||
schema: | ||
type: 'string' | ||
example: '[email protected]' | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/opponent" | ||
responses: | ||
'201': | ||
description: 'Opponent added successfully' | ||
'400': | ||
description: 'Bad request' | ||
'401': | ||
description: 'Unauthorized' | ||
'404': | ||
description: 'Not found' | ||
'500': | ||
description: 'Internal server error' | ||
/opponents/{opponent-id}: | ||
delete: | ||
tags: | ||
- opponents | ||
summary: 'Remove an opponent' | ||
operationId: 'removeOpponent' | ||
parameters: | ||
- name: 'opponent-id' | ||
in: 'path' | ||
required: true | ||
schema: | ||
type: 'integer' | ||
format: 'int64' | ||
- name: 'Caab-User-Login-Id' | ||
in: header | ||
required: true | ||
schema: | ||
type: 'string' | ||
example: '[email protected]' | ||
responses: | ||
'204': | ||
description: 'No Content' | ||
'400': | ||
description: 'Bad request' | ||
'401': | ||
description: 'Unauthorized' | ||
'404': | ||
description: 'Not found' | ||
'500': | ||
description: 'Internal server error' | ||
patch: | ||
tags: | ||
- opponents | ||
summary: 'Update an opponent' | ||
operationId: 'updateOpponent' | ||
parameters: | ||
- name: 'opponent-id' | ||
in: 'path' | ||
required: true | ||
schema: | ||
type: 'integer' | ||
format: 'int64' | ||
- name: 'Caab-User-Login-Id' | ||
in: header | ||
required: true | ||
schema: | ||
type: 'string' | ||
example: '[email protected]' | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/opponent" | ||
responses: | ||
'200': | ||
description: 'Opponent updated successfully' | ||
'400': | ||
description: 'Bad request' | ||
'401': | ||
description: 'Unauthorized' | ||
'404': | ||
description: 'Not found' | ||
'500': | ||
description: 'Internal server error' | ||
|
||
components: | ||
schemas: | ||
intDisplayValue: | ||
|
@@ -1253,6 +1385,8 @@ components: | |
opponent: | ||
type: 'object' | ||
properties: | ||
id: | ||
type: 'integer' | ||
ebs_id: | ||
type: 'string' | ||
type: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.