Skip to content

chore: Switch delete user settings endpoint to read from query params#176

Open
morgan-wowk wants to merge 1 commit intomasterfrom
delete-user-settings-query-param
Open

chore: Switch delete user settings endpoint to read from query params#176
morgan-wowk wants to merge 1 commit intomasterfrom
delete-user-settings-query-param

Conversation

@morgan-wowk
Copy link
Collaborator

@morgan-wowk morgan-wowk commented Mar 18, 2026

Changes:

  • Wrap delete user settings handler in add_parameter_annotation_metadata to instruct FastAPI to read setting_names parameter from query params

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

**Changes:**

* Wrap del user settings handler in `add_parameter_annotation_metadata` to instruct FastAPI to read from the query params instead of request body
@morgan-wowk morgan-wowk force-pushed the delete-user-settings-query-param branch from 9724068 to e7680c6 Compare March 18, 2026 22:31
@morgan-wowk morgan-wowk changed the title fix: Delete user settings endpoint not reading from query params chore: Delete user settings endpoint not reading from query params Mar 18, 2026
@morgan-wowk morgan-wowk changed the title chore: Delete user settings endpoint not reading from query params chore: Switch delete user settings endpoint to read from query params Mar 18, 2026
@morgan-wowk morgan-wowk marked this pull request as ready for review March 20, 2026 18:17
@morgan-wowk morgan-wowk requested a review from Ark-kun as a code owner March 20, 2026 18:17
Copy link
Collaborator Author

Copy link
Collaborator Author

This one can be closed if you prefer to keep what we got already ☝️

Copy link
Contributor

Ark-kun commented Mar 20, 2026

Hmm. Query is not great for non-primitive parameters. For example, dictionaries are still a big problem.
But I'm not strongly against.

Copy link
Contributor

Ark-kun commented Mar 20, 2026

How does the URL look like? Does FastAPI docs support it (schema, UI)?

Copy link
Collaborator Author

morgan-wowk commented Mar 21, 2026

The URL would be http://localhost:8000/api/users/me/settings?setting_names=theme&setting_names=default_compute to delete multiple keys at the same time.

Does FastAPI docs support it (schema, UI)

Can you clarify? Do you mean OpenAPI spec and swagger / docusaurus UI?

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