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
6997490335fbaf756fbfbbd7dc4d7b3ed45410db
greenlight
/
cmd
/
api
History
Maxime Delporte
641f430fd4
Some checks failed
Deploy Greenlight API / deploy (push)
Failing after 40s
Details
Creating migrations files to create movies table and add movies check constraints. Updating API version number. Updating README.md adding 'SQL Migrations' section. Updating deployment file to make migrations before building API. Adding some .idea files into .gitignore.
2025-10-30 15:16:20 +01:00
..
errors.go
Creating validator.go allowing us to validate received data from our endpoints. Updating errors.go adding failedValidationResponse method allowing us to deliver a StatusUnprocessableEntity error. Updating createMovieHandler with the use of our new validator package.
2025-10-28 11:04:18 +01: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
Creating migrations files to create movies table and add movies check constraints. Updating API version number. Updating README.md adding 'SQL Migrations' section. Updating deployment file to make migrations before building API. Adding some .idea files into .gitignore.
2025-10-30 15:16:20 +01: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
Exporting the validation from cmd/api/movies.go to internal/data/movies.go by creating the ValidateMovie method. Updating createMovieHandler to use our new ValidateMovie method.
2025-10-28 12:07:04 +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