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.