View All Reviews on a Particular Movie
Explore how to build a Go API endpoint that fetches all reviews for a given movie by passing the movie ID. Understand how to configure controllers, routes, and test authentication to retrieve movie reviews stored in MongoDB.
We'll cover the following...
We'll cover the following...
Setting up the controller
Users want to be able to read other reviews as well as their own. This is where the view all reviews feature is useful. By passing the movie_id, the controller simply issues a request to the database and retrieves all the reviews on the ...