- Timestamp:
- 11/04/21 23:10:39 (3 years ago)
- Branches:
- master
- Children:
- ceaed42
- Parents:
- 6a80231
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/_services/planner.service.ts
r6a80231 r6c1585f 16 16 } 17 17 18 postInitialPlanner(planner Dto: PlannerDto): Observable<Object>{18 postInitialPlanner(planner: Planner, locationList: Location[]): Observable<Object>{ 19 19 let url = "http://localhost:8080/api/planner/new"; 20 return this.httpClient.post<Planner>(url, planner Dto);20 return this.httpClient.post<Planner>(url, planner); 21 21 } 22 22 23 updatePlanner(id: number ):Observable<Planner>{23 updatePlanner(id: number, plannerDto : PlannerDto):Observable<Planner>{ 24 24 let url = "http://localhost:8080/api/edit/planner/" + id; 25 return this.httpClient.put<Planner>(url, null); 25 return this.httpClient.put<Planner>(url, plannerDto); 26 } 27 28 getPlannerById(id:number):Observable<Planner>{ 29 let url = "http://localhost:8080/api/planner/" + id; 30 return this.httpClient.get<Planner>(url); 26 31 } 27 32 }
Note:
See TracChangeset
for help on using the changeset viewer.