Changeset 6a80231 for trip-planner/src
- Timestamp:
- 11/02/21 22:14:57 (3 years ago)
- Branches:
- master
- Children:
- 6c1585f
- Parents:
- 188ee53
- Location:
- trip-planner/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/models/Planner.java
r188ee53 r6a80231 2 2 3 3 import lombok.*; 4 import reactor.util.annotation.Nullable; 4 5 5 6 import javax.persistence.*; -
trip-planner/src/main/java/finki/diplomska/tripplanner/models/dto/PlannerDto.java
r188ee53 r6a80231 1 1 package finki.diplomska.tripplanner.models.dto; 2 2 3 import finki.diplomska.tripplanner.models.Location;4 3 import lombok.Data; 5 4 -
trip-planner/src/main/java/finki/diplomska/tripplanner/service/CategoryService.java
r188ee53 r6a80231 7 7 public interface CategoryService { 8 8 List<Category> findAll(); 9 9 10 } -
trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/PlannerServiceImpl.java
r188ee53 r6a80231 51 51 @Override 52 52 public Optional<Planner> newPlanner(PlannerDto plannerDto) { 53 /* 53 54 List<Location> locationList = new ArrayList<>(); 54 55 for(Long location : plannerDto.getLocationList()){ … … 57 58 locationList.add(loc); 58 59 } 59 return Optional.of(this.plannerRepository.save(new Planner(plannerDto.getName(), plannerDto.getDescription(), locationList))); 60 61 */ 62 return Optional.of(this.plannerRepository.save(new Planner(plannerDto.getName(), plannerDto.getDescription(), null))); 60 63 } 61 64 -
trip-planner/src/test/api.http
r188ee53 r6a80231 15 15 Content-Type: application/json 16 16 17 {"name": "S ixth Planner Check", "description": "FirstPlanner Description", "locationList" : []}17 {"name": "Second Planner Check", "description": "Second Planner Description", "locationList" : []} 18 18 19 19 ###
Note:
See TracChangeset
for help on using the changeset viewer.