We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/api/participants/<id>/visits
this endpoint is retrieve only. do not allow post.
This endpoint will take the participant_id and return all visits associated with them.
make sure each visit is not redundantly populated with all the visit information
The text was updated successfully, but these errors were encountered:
Should the foreign keys to Program and Service be embedded, left as foreign keys, or something else?
Sorry, something went wrong.
let's populate with ServiceforProgramSerializer and ProgramSerializer (but leave out a nested services array)
ServiceforProgramSerializer
ProgramSerializer
we do not want the populated participant object, just the FK.
Just use viewsets.Viewset and define retrieve as this is a read only endpoint
viewsets.Viewset
retrieve
finally, you can add new classes in the /visits/ directory files, no need to create a completely new folder
/visits/
Successfully merging a pull request may close this issue.
/api/participants/<id>/visits
this endpoint is retrieve only. do not allow post.
This endpoint will take the participant_id and return all visits associated with them.
make sure each visit is not redundantly populated with all the visit information
The text was updated successfully, but these errors were encountered: