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

Fastapi conversion #807

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Fastapi conversion #807

merged 7 commits into from
Sep 30, 2024

Conversation

paulespinosa
Copy link
Member

@paulespinosa paulespinosa commented Sep 29, 2024

Related #789

What changes did you make?

Updated test_authentication - all tests pass

Migrated the following endpoints:

  • /coordinator/dashboard/all
  • /host
  • /forms -> Creating a form is not migrated as not being an immediate feature. The intake profile form definition is now located at /intake-profile/form/{profile_id}. The data loaded from disk until further development of Intake Profile and Forms makes progress. Updated frontend to use this path.
  • /responses -> Moved to /intake-profile/responses/{user_id} to put the focus on Intake Profile. Updated frontend to use this path.
  • /health

Rationale behind the changes?

This is part of the FastAPI migration work. It migrates these endpoints from Flask to FastAPI.

Testing done for these changes

  • Updated and ran automated tests.
  • Manually running the API and checking endpoints

Focuses on Intake Profile with Forms as a subcomponent of it.

The form definition endpoint has been moved to
`/api/intake-profile/form/{form_id}`. The JSON data is loaded from disk as a
stop gap until the Intake Profile feature is developed more.

The code for the responses endpoint has been moved but not updated. The
responses will be updated and viewed from the path
`/api/intake-profile/{intake_profile_id}`.
Matches the Intake Profile endpoints on the frontend and backend.
Copy link
Collaborator

@erikguntner erikguntner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@paulespinosa paulespinosa merged commit bd48adf into main Sep 30, 2024
0 of 2 checks 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.

2 participants