diff --git a/libs/red-ui-http/src/lib/api/fileManagementController.service.ts b/libs/red-ui-http/src/lib/api/fileManagementController.service.ts index 691bd5e19..4b1ece554 100644 --- a/libs/red-ui-http/src/lib/api/fileManagementController.service.ts +++ b/libs/red-ui-http/src/lib/api/fileManagementController.service.ts @@ -27,7 +27,7 @@ import { Configuration } from '../configuration'; export class FileManagementControllerService { public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); - protected basePath = '//localhost:8080/'; + protected basePath = ''; constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { if (basePath) { diff --git a/libs/red-ui-http/src/lib/api/redactionLogController.service.ts b/libs/red-ui-http/src/lib/api/redactionLogController.service.ts index 57c4c8db1..804d0c67d 100644 --- a/libs/red-ui-http/src/lib/api/redactionLogController.service.ts +++ b/libs/red-ui-http/src/lib/api/redactionLogController.service.ts @@ -40,17 +40,19 @@ export class RedactionLogControllerService { /** * Gets the redaction log for a fileId * None + * @param projectId projectId * @param fileId fileId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getRedactionLog(fileId: string, observe?: 'body', reportProgress?: boolean): Observable; + public getRedactionLog(projectId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable; + public getRedactionLog(projectId: string, fileId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public getRedactionLog(projectId: string, fileId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public getRedactionLog(projectId: string, fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable { + if (projectId === null || projectId === undefined) { + throw new Error('Required parameter projectId was null or undefined when calling getRedactionLog.'); + } - public getRedactionLog(fileId: string, observe?: 'response', reportProgress?: boolean): Observable>; - - public getRedactionLog(fileId: string, observe?: 'events', reportProgress?: boolean): Observable>; - - public getRedactionLog(fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable { if (fileId === null || fileId === undefined) { throw new Error('Required parameter fileId was null or undefined when calling getRedactionLog.'); } @@ -73,28 +75,34 @@ export class RedactionLogControllerService { // to determine the Content-Type header const consumes: string[] = []; - return this.httpClient.request('get', `${this.basePath}/redactionLog/${encodeURIComponent(String(fileId))}`, { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - }); + return this.httpClient.request( + 'get', + `${this.basePath}/redactionLog/${encodeURIComponent(String(projectId))}/${encodeURIComponent(String(fileId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); } /** * Gets the section grid for a fileId * None + * @param projectId projectId * @param fileId fileId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getSectionGrid(fileId: string, observe?: 'body', reportProgress?: boolean): Observable; + public getSectionGrid(projectId: string, fileId: string, observe?: 'body', reportProgress?: boolean): Observable; + public getSectionGrid(projectId: string, fileId: string, observe?: 'response', reportProgress?: boolean): Observable>; + public getSectionGrid(projectId: string, fileId: string, observe?: 'events', reportProgress?: boolean): Observable>; + public getSectionGrid(projectId: string, fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable { + if (projectId === null || projectId === undefined) { + throw new Error('Required parameter projectId was null or undefined when calling getSectionGrid.'); + } - public getSectionGrid(fileId: string, observe?: 'response', reportProgress?: boolean): Observable>; - - public getSectionGrid(fileId: string, observe?: 'events', reportProgress?: boolean): Observable>; - - public getSectionGrid(fileId: string, observe: any = 'body', reportProgress: boolean = false): Observable { if (fileId === null || fileId === undefined) { throw new Error('Required parameter fileId was null or undefined when calling getSectionGrid.'); } @@ -117,12 +125,16 @@ export class RedactionLogControllerService { // to determine the Content-Type header const consumes: string[] = []; - return this.httpClient.request('get', `${this.basePath}/sectionGrid/${encodeURIComponent(String(fileId))}`, { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - }); + return this.httpClient.request( + 'get', + `${this.basePath}/sectionGrid/${encodeURIComponent(String(projectId))}/${encodeURIComponent(String(fileId))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); } /**