Skip to content

Commit

Permalink
PR Amendments
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilDigitalJustice committed Jan 18, 2024
1 parent f275d88 commit 5898828
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions caab-api/open-api-specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ paths:
get:
tags:
- applications
summary: 'Get an application''s prior authorities'
summary: 'Get an application''s cost structure'
operationId: 'getApplicationCostStructure'
parameters:
- name: 'id'
Expand Down Expand Up @@ -417,6 +417,7 @@ paths:
/applications/{id}/linked-cases:
get:
tags:
- applications
- linked cases
summary: 'Get an application''s linked cases'
operationId: 'getApplicationLinkedCases'
Expand Down Expand Up @@ -447,6 +448,7 @@ paths:
description: 'Internal server error'
post:
tags:
- applications
- linked cases
summary: 'Add a linked case to an application'
operationId: 'addApplicationLinkedCase'
Expand Down Expand Up @@ -484,8 +486,8 @@ paths:
delete:
tags:
- linked cases
summary: 'Remove a linked case from an application'
operationId: 'removeApplicationLinkedCase'
summary: 'Remove a linked case'
operationId: 'removeLinkedCase'
parameters:
- name: 'linked-case-id'
in: 'path'
Expand Down Expand Up @@ -513,8 +515,8 @@ paths:
patch:
tags:
- linked cases
summary: 'Update a linked case of an application'
operationId: 'updateApplicationLinkedCase'
summary: 'Update a linked case '
operationId: 'updateLinkedCase'
parameters:
- name: 'linked-case-id'
in: 'path'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public void deleteLinkedCase() {
Long caseRef = 41L;
Long linkedCaseRef = 2L;

applicationController.removeApplicationLinkedCase(linkedCaseRef, caabUserLoginId);
applicationController.removeLinkedCase(linkedCaseRef, caabUserLoginId);
ResponseEntity<List<LinkedCase>> responseEntity = applicationController.getApplicationLinkedCases(caseRef);

assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public ResponseEntity<Void> addApplicationLinkedCase(
* @return a ResponseEntity with no content
*/
@Override
public ResponseEntity<Void> updateApplicationLinkedCase(
public ResponseEntity<Void> updateLinkedCase(
final Long linkedCaseId,
final String caabUserLoginId,
final LinkedCase linkedCase) {
Expand All @@ -292,7 +292,7 @@ public ResponseEntity<Void> updateApplicationLinkedCase(
* @return a ResponseEntity indicating the case was successfully removed
*/
@Override
public ResponseEntity<Void> removeApplicationLinkedCase(
public ResponseEntity<Void> removeLinkedCase(
final Long linkedCaseId,
final String caabUserLoginId) {
linkedCaseService.removeLinkedCase(linkedCaseId);
Expand Down

0 comments on commit 5898828

Please sign in to comment.