This is an automated email from the ASF dual-hosted git repository. ankovalyshyn pushed a commit to branch feature/projects in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 6763e6144521efb8824d414e8fce7a96ba23a333 Author: Andriana Kovalyshyn <[email protected]> AuthorDate: Mon May 27 17:55:17 2019 +0300 [DLAB-635]: added update service methods --- .../src/app/core/services/applicationServiceFacade.service.ts | 7 +++++++ .../resources/webapp/src/app/core/services/project.service.ts | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts index 9a93bb1..ad1734b 100644 --- a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts +++ b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts @@ -528,6 +528,13 @@ export class ApplicationServiceFacade { this.requestRegistry.Item(ApplicationServiceFacade.PROJECT), data); } + + public buildUpdateProject(data): Observable<any> { + return this.buildRequest(RequestMethod.Put, + this.requestRegistry.Item(ApplicationServiceFacade.PROJECT), + data); + } + public buildGetProjectsList(): Observable<any> { return this.buildRequest(RequestMethod.Get, this.requestRegistry.Item(ApplicationServiceFacade.PROJECT), diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts index f9d72b7..ff17365 100644 --- a/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts +++ b/services/self-service/src/main/resources/webapp/src/app/core/services/project.service.ts @@ -35,6 +35,14 @@ export class ProjectService { map(response => response), catchError(ErrorUtils.handleServiceError)); } + + public updateProject(data): Observable<{}> { + return this.applicationServiceFacade + .buildUpdateProject(data) + .pipe( + map(response => response), + catchError(ErrorUtils.handleServiceError)); + } public getProjectsList(): Observable<{}> { return this.applicationServiceFacade --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
