This PR updates the solar eclipse endpoints so that we can collect the information specified in https://github.com/cosmicds/solar-eclipse-2024/issues/51#issuecomment-1977672175. The idea here is to use more of an update-based system - in particular, values and lists of locations passed into the PATCH endpoint are seen as modifications to the existing values and are added/appended to what's already in the database.
This PR also updates the solar eclipse endpoints to use effect for data validation, which is something that we should both do going forward and apply to existing endpoints.
This PR updates the solar eclipse endpoints so that we can collect the information specified in https://github.com/cosmicds/solar-eclipse-2024/issues/51#issuecomment-1977672175. The idea here is to use more of an update-based system - in particular, values and lists of locations passed into the
PATCH
endpoint are seen as modifications to the existing values and are added/appended to what's already in the database.This PR also updates the solar eclipse endpoints to use
effect
for data validation, which is something that we should both do going forward and apply to existing endpoints.