Maxime Delporte
|
599ab6b3c6
|
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 |
|
Maxime Delporte
|
c3fdb40ae4
|
Adding more context for invalidUnmarshalError management inside readJSON function. Updating 'Panicking vs returning errors' section.
Deploy Greenlight API / deploy (push) Successful in 54s
|
2025-10-25 09:57:41 +02:00 |
|
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
|
c6baa807e4
|
Creating readJSON method to manage errors that can happen once.
Deploy Greenlight API / deploy (push) Successful in 54s
|
2025-10-24 14:27:46 +02:00 |
|
Maxime Delporte
|
5ca50c6566
|
Fixing typo.
|
2025-10-19 18:08:58 +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
|
cb3691ce04
|
Creating writeJSON method inside helpers.go file. Using writeJSON helper inside healthcheckHandler.
|
2025-10-11 21:15:50 +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 |
|