You are required to build an API for a tour management system for this assignment. In this system, you have to provide several endpoints to the client. The endpoints are:
-
Get all the tours https://tourmanagement7.herokuapp.com/api/v1/tours
-
Add a tour https://tourmanagement7.herokuapp.com/api/v1/tours
-
Get a tour details by id https://tourmanagement7.herokuapp.com/api/v1/tours/:id
-
Update a tour https://tourmanagement7.herokuapp.com/api/v1/tour/:id
-
Get top 3 viewed tour https://tourmanagement7.herokuapp.com/api/v1/tour/trending
-
Get top 3 cheapest tours https://tourmanagement7.herokuapp.com/api/v1/tour/cheapest