Thanks to Akhil Sharma
Code written following his training course available on freeCodeCamp.org : Learn Go Programming by Building 11 Projects – Full Course
This project goal is to cover CRUD operations for a movie collection. These operations are performed on a slice containing the movies.
- GET /movies : get all movies
- GET /movies/ : get the movie with the specified id
- POST /movies : add a new movie from the one specified on the body of the request
- PUT /movies/ : update the movie with the specified id
- DELETE /movies/ : delete the movie with the specified id
We use here gorilla/mux HTTP router.
Perfomed with Postman