Complete the Request Handler

Report a typo

Take a look at the request:

POST http://localhost:8080/movies
Content-Type: application/json

[
  {
    "id" : "974ks2h2e",
    "title" : "The Revenant",
    "budget" : 135000000
  },
  {
    "id" : "fnw73031s1",
    "title" : "The Shape of Water",
    "budget" : 20000000
  }
]

It contains an array of Movie objects and the following handler:

Java
{1}(value = "/movies", {2} = "application/json")
String addMovies({3} List<Movie> movies)
Kotlin
{1}(value = ["/movies"], {2} = ["application/json"])
fun addMovies({3} movies: List<Movie>): String

Match each number with the required code to complete the handler.

Match the items from left and right columns
1
2
3
consumes
@RequestBody
@PostMapping
___

Create a free account to access the full topic