Skip to content

Commit

Permalink
ALCS-1858 End point naming change
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreta committed Dec 10, 2024
1 parent 754a3a8 commit 4d6feb8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ApplicationDecisionV2Service {

async getStatus(conditionUuid: string): Promise<ApplicationDecisionStatus> {
try {
return await firstValueFrom(this.http.get<ApplicationDecisionStatus>(`${this.url}/condition/${conditionUuid}`));
return await firstValueFrom(this.http.get<ApplicationDecisionStatus>(`${this.url}/condition/${conditionUuid}/status`));
} catch (e: any) {
this.toastService.showErrorToast(e.error?.message ?? 'No status found');
throw e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class NoticeOfIntentDecisionV2Service {

async getStatus(conditionUuid: string): Promise<NoticeOfIntentDecisionStatus> {
try {
return await firstValueFrom(this.http.get<NoticeOfIntentDecisionStatus>(`${this.url}/condition/${conditionUuid}`));
return await firstValueFrom(this.http.get<NoticeOfIntentDecisionStatus>(`${this.url}/condition/${conditionUuid}/status`));
} catch (e: any) {
this.toastService.showErrorToast(e.error?.message ?? 'No status found');
throw e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class ApplicationDecisionV2Controller {
return await this.mapper.mapArrayAsync(decisions, ApplicationDecision, ApplicationDecisionDto);
}

@Get('/condition/:uuid')
@Get('/condition/:uuid/status')
@UserRoles(...ANY_AUTH_ROLE)
async getConditionStatus(@Param('uuid') uuid): Promise<ApplicationConditionStatus> {
const status = await this.appDecisionService.getDecisionConditionStatus(uuid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class NoticeOfIntentDecisionV2Controller {
);
}

@Get('/condition/:uuid')
@Get('/condition/:uuid/status')
@UserRoles(...ANY_AUTH_ROLE)
async getConditionStatus(@Param('uuid') uuid): Promise<NoticeOfIntentConditionStatus> {
const status = await this.noticeOfIntentDecisionV2Service.getDecisionConditionStatus(uuid);
Expand Down

0 comments on commit 4d6feb8

Please sign in to comment.