Change Org Endpoint Path Params to Queries #10

Closed
opened 2026-05-27 08:54:57 +00:00 by chris · 0 comments
Owner

If the org_id is passed as a query param instead of a path, it can cleanly be handled by the org_model_dependency instead of having "unused" parameters on every end point.

Query params added to the dependency are automatically expected by FastAPI on the endpoint, path params need to be handled explicitly on the endpoint, as well as the dependency.

If the org_id is passed as a query param instead of a path, it can cleanly be handled by the org_model_dependency instead of having "unused" parameters on every end point. Query params added to the dependency are automatically expected by FastAPI on the endpoint, path params need to be handled explicitly on the endpoint, as well as the dependency.
chris referenced this issue from a commit 2026-05-27 11:23:46 +00:00
chris closed this issue 2026-05-27 11:23:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sr2/cloud-api#10
No description provided.