Maxime Delporte
|
12e1c7a523
|
Updating createMovieHandler using helper's readJSON method.
Deploy Greenlight API / deploy (push) Successful in 52s
|
2025-10-24 14:47:20 +02:00 |
|
Maxime Delporte
|
d650691b08
|
Updating createMovieHandler decoding received data from client.
Deploy Greenlight API / deploy (push) Successful in 58s
|
2025-10-24 14:02:36 +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
|
1927c64047
|
Creating an envelope struct type inside our helpers file to update our writeJSON data type method's parameter. Updating healthcheckHandler and showMovieHandler with this new type to update our responses.
|
2025-10-19 11:47:25 +02:00 |
|
Maxime Delporte
|
9a0cb4db10
|
Creating Movie struct inside internal/data/movies.go to be used in cmd/api/movies.go. Updating the showMovieHandler with the Movie struct.
|
2025-10-19 11:03:04 +02:00 |
|
Maxime Delporte
|
5b6f33c3f0
|
Creating helpers.go file : allowing us to extract readIDParam method for further use. Updating showMovieHandler with the new method.
|
2025-10-10 20:50:32 +02:00 |
|
Maxime Delporte
|
faa27b11d5
|
Fixing typo.
|
2025-10-10 20:43:14 +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 |
|