| | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | junction.ifPresent(j -> this.logger.debug(name+": "+j)); |
| | | return junction.orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND)); |
| | | } |
| | | |
| | | @PutMapping("/{junctionId}/assignToHighway/{highwayId}") |
| | | public void assignToHighway(@PathVariable Integer junctionId, @PathVariable Integer highwayId) { |
| | | |
| | | } |
| | | } |