cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Updates to solar eclipse endpoint #104

Closed Carifio24 closed 6 months ago

Carifio24 commented 6 months ago

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.