| | |
| | | package de.gedoplan.seminar.jpa.exercise.rest; |
| | | |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | import org.apache.commons.logging.Log; |
| | | import org.slf4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.ApplicationArguments; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | import de.gedoplan.seminar.jpa.exercise.domain.Highway; |
| | | import de.gedoplan.seminar.jpa.exercise.repository.HighwayRepository; |
| | | |
| | | |
| | | @Controller |
| | | @RequestMapping(path = "/highways", produces = MediaType.APPLICATION_JSON_VALUE) |
| | | public class HighwayResource { |
| | | |