Commit Graph

  • d2e38e75ac Updating README typo. Maxime Delporte 2025-10-19 11:49:51 +02:00
  • 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. Maxime Delporte 2025-10-19 11:47:25 +02:00
  • d7ccef3713 Updating writeJSON helper method replacing json.Marshal() by json.MarshalIndent() method to improve responses readability. Updating README adding Performance sub-section. Maxime Delporte 2025-10-19 11:34:42 +02:00
  • 9a0cb4db10 Creating Movie struct inside internal/data/movies.go to be used in cmd/api/movies.go. Updating the showMovieHandler with the Movie struct. Maxime Delporte 2025-10-19 11:03:04 +02:00
  • 1b886109be Updating README.md with Additional Information section. Maxime Delporte 2025-10-12 20:34:59 +02:00
  • cb3691ce04 Creating writeJSON method inside helpers.go file. Using writeJSON helper inside healthcheckHandler. Maxime Delporte 2025-10-11 21:15:50 +02:00
  • 0db52ad9de Updating healthcheckHandler using json.Marshal method instead of raw json string. Maxime Delporte 2025-10-11 11:31:58 +02:00
  • 4f531c6fe0 Updating healthcheckHandler with JSON response. Maxime Delporte 2025-10-11 11:22:59 +02:00
  • 5b6f33c3f0 Creating helpers.go file : allowing us to extract readIDParam method for further use. Updating showMovieHandler with the new method. Maxime Delporte 2025-10-10 20:50:32 +02:00
  • faa27b11d5 Fixing typo. Maxime Delporte 2025-10-10 20:43:14 +02:00
  • 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. Maxime Delporte 2025-10-10 16:15:30 +02:00
  • 4342a8df0d README.md : Fix typo. Maxime Delporte 2025-10-10 15:48:43 +02:00
  • 7e1a0ac66a README.md : Adding API versioning section. Maxime Delporte 2025-10-10 15:35:05 +02:00
  • b0ed205fdb Update README.md : adding Endpoints section. Maxime Delporte 2025-10-10 14:36:02 +02:00
  • 8c0de92c43 Updating README with API initialisation and tips. Maxime Delporte 2025-10-10 11:13:06 +02:00
  • 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. Maxime Delporte 2025-10-09 21:38:00 +02:00
  • a90b5305af First commit Maxime Delporte 2025-10-09 11:08:21 +02:00