Maxime Delporte
|
8b0c51123f
|
Enforcing a global rate limit.
|
2025-11-16 10:36:36 +01:00 |
|
Maxime Delporte
|
041d302a79
|
Creating listMoviesHandler and adding /v1/movies GET endpoint to use it.
|
2025-11-11 10:43:34 +01:00 |
|
Maxime Delporte
|
b76496e096
|
Updating updateMovieHandler to be able to update only some fields (patch instead of put). Update routes with the correct verb.
Deploy Greenlight API / deploy (push) Successful in 1m20s
|
2025-11-07 11:57:04 +01:00 |
|
Maxime Delporte
|
1270a3bda6
|
Updating MovieModel's Delete method from internal/data/movies.go file. Create the deleteMovieHandler function inside cmd/api/movies.go. Adding the route into routes.go to delete a movie.
|
2025-11-07 11:37:19 +01:00 |
|
Maxime Delporte
|
69651c58b7
|
Updating MovieModel's method from internal/data/movies.go file. Create the updateMovieHandler function inside cmd/api/movies.go. Adding the route into routes.go to update a movie.
|
2025-11-07 11:27:45 +01:00 |
|
Maxime Delporte
|
7057f89038
|
Creating recoverPanic method inside our middleware.go file and use it inside routes.go wrapping our router.
Deploy Greenlight API / deploy (push) Successful in 59s
|
2025-10-23 14:19:53 +02:00 |
|
Maxime Delporte
|
2124f2f882
|
Using the new error's helper methods inside our current API endpoint and with our httprouter Handlers NotFound and MethodNotAllowed (will override the default responses with our helper's methods)
Deploy Greenlight API / deploy (push) Successful in 52s
|
2025-10-21 19:02:42 +02:00 |
|
Maxime Delporte
|
e0931223e4
|
Adding httprouter dependency to manage endpoints. Adding our routes to routes.go file facilitating endpoints management and adding POST /v1/movies and GET /v1/movies/:id endpoints. Updating main.go file removing ServeMux and add httprouter instead in app structure. Creating movies.go file to manage create and show movie endpoint.
|
2025-10-10 16:15:30 +02:00 |
|