Closed Carifio24 closed 7 months ago
This PR adds a new sub-router for the Solar Eclipse 2024 data story. These include:
PUT /response
GET /responses
GET /response/<user ID>
Just like with the annular eclipse story, we assign each user a unique ID and store a single database entry for that user.
Additionally, since we now have multiple eclipse stories, this PR adds some disambiguating text to the old endpoint.
This PR adds a new sub-router for the Solar Eclipse 2024 data story. These include:
PUT /response
for adding or updating a user's responseGET /responses
returns all of the current user responsesGET /response/<user ID>
returns the response for the user with the given IDJust like with the annular eclipse story, we assign each user a unique ID and store a single database entry for that user.
Additionally, since we now have multiple eclipse stories, this PR adds some disambiguating text to the old endpoint.