Statistics of the number of movies by producer name as shown in Figure 8, with the following API endpoint parameters:
URL:
http://localhost:9999/api/movie/count-by-producer/:producerName
Method: GET
Example:
GET
http://localhost:9999/api/movie/count-by-producer/Corie Awde
Params Auth
Body
Pretty Raw Preview Visualize JSON
1
2
3
4
{
Headers (9)
Body.
Scripts Tests
Settings
Send
29 ms 279 B
}
Save as example
200 OK
"producer": "Corie Awde",
"numberOfMovies": 4
Cookies
Figure 8 - Number of movies produced by "Corie Awde"
Correct number of movies by producer name - (1 mark).
Display the correct format of the returned object - (0.5 marks).
If the producer name does not exist, return the result as shown in Figure 9 - (0.5 marks).
GET
http://localhost:9999/api/movie/count-by-producer/Corie Awde123
Send
Zoom
+ 100%
Close