Find a handler for the request

Report a typo

Connect the request path with the number of a handling method description:

Java
  1. @GetMapping(path = "/movies/{movieId}/comments")
    public List<String> getComments(@PathVariable String movieId)
  2. @GetMapping("/movies/{id}")
    public Movie getMovie(@PathVariable String id)
  3. @PostMapping("/movies/{movieId}/comments")
    public void comment(@PathVariable String movieId, @RequestBody String comment)
  4. @PostMapping("/movies")
    public void addMovie(@RequestBody Movie movie)
Kotlin
  1. @GetMapping("/movies/{movieId}/comments")
    fun getComments(@PathVariable movieId: String): List<String>
  2. @GetMapping("/movies/{id}")
    fun getMovie(@PathVariable id: String): Movie
  3. @PostMapping("/movies/{movieId}/comments")
    fun comment(@PathVariable movieId: String, @RequestBody comment: String)
  4. @PostMapping("/movies")
    fun addMovie(@RequestBody movie: Movie)
Match the items from left and right columns
GET /movies/1562481
POST /movies
GET /movies/7851305/comments
POST /movies/5196724/comments
3
2
4
1
___

Create a free account to access the full topic