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 getting stages and stage states #126

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

Carifio24
Copy link
Member

This PR adds the following endpoints:

  • GET /stages/<story name> returns information about all of the stages for the given story
  • GET /stage-states/<student ID>/<story name> returns all of the given student's stage states for the given story
    • The response object here is of the form { "stage_name": "stage_state", ... }

This PR also contains setup infrastructure for the new Stages table which contains information about all of the stages for a given story. We need to add these stages to this table ourselves - there isn't any process to autogenerate these from e.g. story code.

@Carifio24 Carifio24 merged commit 5faf3f1 into cosmicds:main Aug 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