Closed Timothy-Gonzalez closed 1 year ago
Currently, all fields are required (except foodWave and points), just like POST, making this endpoint functionally useless. These fields should not be required for PUT. We should also add E2E tests for PUT so this doesn't happen again.
foodWave
points
POST
PUT
I confused PUT and PATCH, lol. Proper way is to GET then PUT.
PATCH
GET
There still probably should be a PATCH method, but we'll save that for when we rewrite the api in rust.
Currently, all fields are required (except
foodWave
andpoints
), just likePOST
, making this endpoint functionally useless. These fields should not be required forPUT
. We should also add E2E tests forPUT
so this doesn't happen again.PUT
required fieldsPUT