Hendrik Jungnitsch
2022-09-05 4aefdfdd2b3a9864ef488b76b5f9c69ab4c23b9f
src/main/java/de/gedoplan/seminar/jpa/exercise/rest/JunctionResource.java
@@ -9,6 +9,7 @@
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;
@@ -54,4 +55,9 @@
    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) {
  }
}