diff --git a/src/Web/StellaOps.Web/src/app/core/api/approval.client.ts b/src/Web/StellaOps.Web/src/app/core/api/approval.client.ts index 37352ecfb..4aceb93ab 100644 --- a/src/Web/StellaOps.Web/src/app/core/api/approval.client.ts +++ b/src/Web/StellaOps.Web/src/app/core/api/approval.client.ts @@ -32,8 +32,8 @@ export interface ApprovalApi { @Injectable() export class ApprovalHttpClient implements ApprovalApi { private readonly http = inject(HttpClient); - private readonly queueBaseUrl = '/api/v1/release-orchestrator/approvals'; - private readonly detailBaseUrl = '/api/v1/release-orchestrator/approvals'; + private readonly queueBaseUrl = '/api/v1/approvals'; + private readonly detailBaseUrl = '/api/v1/approvals'; listApprovals(filter?: ApprovalFilter): Observable { const params: Record = {}; @@ -78,16 +78,20 @@ export class ApprovalHttpClient implements ApprovalApi { } approve(id: string, comment: string): Observable { - return this.http.post(`${this.detailBaseUrl}/${id}/approve`, { + return this.http.post(`${this.detailBaseUrl}/${id}/decision`, { + action: 'approve', comment, + actor: 'ui-operator', }).pipe( map(row => this.mapV2ApprovalDetail(row)) ); } reject(id: string, comment: string): Observable { - return this.http.post(`${this.detailBaseUrl}/${id}/reject`, { + return this.http.post(`${this.detailBaseUrl}/${id}/decision`, { + action: 'reject', comment, + actor: 'ui-operator', }).pipe( map(row => this.mapV2ApprovalDetail(row)) );