Changeset 6a80231 for trip-planner


Ignore:
Timestamp:
11/02/21 22:14:57 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
6c1585f
Parents:
188ee53
Message:

create initial planner and routing with angular

Location:
trip-planner
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trip-planner/pom.xml

    r188ee53 r6a80231  
    3535            <artifactId>spring-boot-starter-webflux</artifactId>
    3636        </dependency>
    37 
    3837        <dependency>
    3938            <groupId>org.springframework.boot</groupId>
     
    7675            <version>0.0.1-SNAPSHOT</version>
    7776        </dependency>
    78 
    7977        <dependency>
    8078            <groupId>com.github.ulisesbocchio</groupId>
    8179            <artifactId>jasypt-spring-boot-starter</artifactId>
    8280            <version>3.0.3</version>
     81        </dependency>
     82        <dependency>
     83            <groupId>org.apache.httpcomponents</groupId>
     84            <artifactId>httpclient</artifactId>
     85            <scope>test</scope>
    8386        </dependency>
    8487    </dependencies>
  • trip-planner/src/main/java/finki/diplomska/tripplanner/models/Planner.java

    r188ee53 r6a80231  
    22
    33import lombok.*;
     4import reactor.util.annotation.Nullable;
    45
    56import javax.persistence.*;
  • trip-planner/src/main/java/finki/diplomska/tripplanner/models/dto/PlannerDto.java

    r188ee53 r6a80231  
    11package finki.diplomska.tripplanner.models.dto;
    22
    3 import finki.diplomska.tripplanner.models.Location;
    43import lombok.Data;
    54
  • trip-planner/src/main/java/finki/diplomska/tripplanner/service/CategoryService.java

    r188ee53 r6a80231  
    77public interface CategoryService {
    88    List<Category> findAll();
     9
    910}
  • trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/PlannerServiceImpl.java

    r188ee53 r6a80231  
    5151    @Override
    5252    public Optional<Planner> newPlanner(PlannerDto plannerDto) {
     53        /*
    5354        List<Location> locationList  = new ArrayList<>();
    5455        for(Long location : plannerDto.getLocationList()){
     
    5758            locationList.add(loc);
    5859        }
    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)));
    6063    }
    6164
  • trip-planner/src/test/api.http

    r188ee53 r6a80231  
    1515Content-Type: application/json
    1616
    17 {"name": "Sixth Planner Check", "description": "First Planner Description", "locationList" : []}
     17{"name": "Second Planner Check", "description": "Second Planner Description", "locationList" : []}
    1818
    1919###
Note: See TracChangeset for help on using the changeset viewer.