Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoints for Solar Eclipse 2024 story #102

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

Carifio24
Copy link
Member

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 response
  • GET /responses returns all of the current user responses
  • GET /response/<user ID> returns the response for the user with the given 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.

@Carifio24 Carifio24 merged commit a77f326 into cosmicds:main Feb 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant