Here is the sent request :
POST http://localhost:8080/movies
Content-Type: application/json
Cache-Control: no-cache
[
{
"id" : "974ks2h2e",
"title" : "The Revenant",
"budget" : 135000000
},
{
"id" : "fnw73031s1",
"title" : "The Shape of Water",
"budget" : 20000000
}
]
with an array of Movie objects and the handler:
{1}(value = "/movies", consumes = "application/json")
String addMovies(@RequestBody {2} movies)
Complete the handler to make it available to handle the given request.