Commit Graph

89 Commits

Author SHA1 Message Date
Maxime Delporte
b3502631c2 Creating 'Supported destinations types' and 'Triaging the Decode error' sections.
Some checks are pending
Deploy Greenlight API / deploy (push) Has started running
2025-10-24 14:27:06 +02:00
Maxime Delporte
d650691b08 Updating createMovieHandler decoding received data from client.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 58s
2025-10-24 14:02:36 +02:00
Maxime Delporte
e30eac9c4d Updating README.md adding 'System-generated error responses' and 'Panic recovery in other goroutines' sections.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 59s
2025-10-23 17:16:25 +02:00
Maxime Delporte
7057f89038 Creating recoverPanic method inside our middleware.go file and use it inside routes.go wrapping our router.
All checks were successful
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)
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 52s
2025-10-21 19:02:42 +02:00
Maxime Delporte
0f7515e198 Removing string json's parameter from Runtime variable inside Movie's struct. Creating errors.go handling different json's error for our API.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 54s
2025-10-21 18:55:45 +02:00
Maxime Delporte
bc21c4cf87 Use Runtime type instead of int32 in our Movie struct.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 54s
2025-10-21 16:29:11 +02:00
Maxime Delporte
cc588a1dc0 Adding 'Advanced JSON Customization' section in the README.md. Creating a runtime type (internal/data/runtime.go) to show how we can customize a JSON field.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 56s
2025-10-21 16:26:06 +02:00
Maxime Delporte
e7944c3117 Fixing CI.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 53s
2025-10-20 18:28:35 +02:00
Maxime Delporte
b253d7ada3 Fixing CI.
Some checks failed
Deploy Greenlight API / deploy (push) Has been cancelled
2025-10-20 15:57:18 +02:00
Maxime Delporte
85cb67de34 Fixing CI
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 51s
2025-10-20 15:54:37 +02:00
Maxime Delporte
5d93100758 Fixing CI
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 52s
2025-10-20 15:49:55 +02:00
Maxime Delporte
221d2c45df Fixing CI
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 52s
2025-10-20 15:47:30 +02:00
Maxime Delporte
67656bdcc9 Fixing CI
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 52s
2025-10-20 15:45:23 +02:00
Maxime Delporte
c17f0d6909 Fixing CI
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 1m8s
2025-10-20 15:35:16 +02:00
Maxime Delporte
c7828fe5d7 Fixing CI.
Some checks failed
Deploy Greenlight API / deploy (push) Has been cancelled
2025-10-20 15:33:53 +02:00
Maxime Delporte
f282e7943a Fixing CI.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 5m20s
2025-10-20 15:27:48 +02:00
Maxime Delporte
650c7fa894 Fixing CI.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 5m16s
2025-10-20 14:49:28 +02:00
Maxime Delporte
d482d5afb7 Fixing CI.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 7m23s
2025-10-20 14:40:21 +02:00
Maxime Delporte
0df71deae7 Creating deploy.yml for CI/CD.
Some checks failed
Deploy Greenlight API / deploy (push) Has been cancelled
2025-10-20 14:35:05 +02:00
Maxime Delporte
5ca50c6566 Fixing typo. 2025-10-19 18:08:58 +02:00
Maxime Delporte
43612c90e0 Updating README typo. 2025-10-19 11:50:17 +02:00
Maxime Delporte
d2e38e75ac Updating README typo. 2025-10-19 11:49:51 +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
d7ccef3713 Updating writeJSON helper method replacing json.Marshal() by json.MarshalIndent() method to improve responses readability. Updating README adding Performance sub-section. 2025-10-19 11:34:42 +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
1b886109be Updating README.md with Additional Information section. 2025-10-12 20:34:59 +02:00
Maxime Delporte
cb3691ce04 Creating writeJSON method inside helpers.go file. Using writeJSON helper inside healthcheckHandler. 2025-10-11 21:15:50 +02:00
Maxime Delporte
0db52ad9de Updating healthcheckHandler using json.Marshal method instead of raw json string. 2025-10-11 11:31:58 +02:00
Maxime Delporte
4f531c6fe0 Updating healthcheckHandler with JSON response. 2025-10-11 11:22:59 +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
Maxime Delporte
4342a8df0d README.md : Fix typo. 2025-10-10 15:48:43 +02:00
Maxime Delporte
7e1a0ac66a README.md : Adding API versioning section. 2025-10-10 15:35:05 +02:00
Maxime Delporte
b0ed205fdb Update README.md : adding Endpoints section. 2025-10-10 14:36:02 +02:00
Maxime Delporte
8c0de92c43 Updating README with API initialisation and tips. 2025-10-10 11:13:06 +02:00
Maxime Delporte
4047888eb0 Creating Makefile. Adding .idea files. Updating main.go : Configuration of the application and the server. Creating our first handler for the endpoint /v1/healthcheck with healtcheck.go file. 2025-10-09 21:38:00 +02:00
Maxime Delporte
a90b5305af First commit 2025-10-09 11:08:21 +02:00