This website requires JavaScript.
Explore
Help
Sign In
giteacraftr.sxr08
/
greenlight
Watch
1
Star
0
Fork
0
You've already forked greenlight
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
040ace30adfb74174df29b327b089b293acce375
greenlight
/
cmd
/
api
History
Maxime Delporte
040ace30ad
All checks were successful
Deploy Greenlight API / deploy (push)
Successful in 58s
Details
Updating createMovieHandler accepting data.Runtime for the Runtime field. Updating internal/data/runtime.go with the json.Unmarshaler interface to transform our client's runtime string field '%d mins' into a Runtime type format.
2025-10-27 20:03:52 +01:00
..
errors.go
Creating badRequestResponse helper method inside errors.go and use in in the createMovieHandler.
2025-10-24 18:55:05 +02:00
healthcheck.go
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)
2025-10-21 19:02:42 +02:00
helpers.go
Prevent client to send more than one JSON's object. Prevent client to send unknown fields. Prevent client to send more than 1MB of data per endpoint, preventing DDOS attacks.
2025-10-27 19:45:37 +01:00
main.go
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
middleware.go
Creating recoverPanic method inside our middleware.go file and use it inside routes.go wrapping our router.
2025-10-23 14:19:53 +02:00
movies.go
Updating createMovieHandler accepting data.Runtime for the Runtime field. Updating internal/data/runtime.go with the json.Unmarshaler interface to transform our client's runtime string field '%d mins' into a Runtime type format.
2025-10-27 20:03:52 +01:00
routes.go
Creating recoverPanic method inside our middleware.go file and use it inside routes.go wrapping our router.
2025-10-23 14:19:53 +02:00