Skip to content

Conversation

@sawyerh
Copy link
Contributor

@sawyerh sawyerh commented Dec 14, 2023

@sawyerh sawyerh requested review from chouinar and lorenyu December 14, 2023 00:30

Each endpoint is configured in the [openapi.generated.yml](/app/openapi.generated.yml) file which provides basic request validation. Each endpoint specifies an `operationId` that maps to a function defined in the code that will handle the request.

To make handling a request easier, an [ApiContext](/app/src/util/api_context.py) exists which will fetch the DB session, request body, and current user. This can be used like so:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see an equivalent to this anymore in the codebase?

Copy link
Contributor

@chouinar chouinar left a comment

Choose a reason for hiding this comment

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

LGTM!

@sawyerh sawyerh merged commit 0dd8c92 into main Dec 14, 2023
@sawyerh sawyerh deleted the sawyerh/fix-markdown-links branch December 14, 2023 15:50
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.

3 participants