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

How to useQuery with non-GET endpoints? #2104

Open
1 task
bonniss opened this issue Jan 17, 2025 · 0 comments
Open
1 task

How to useQuery with non-GET endpoints? #2104

bonniss opened this issue Jan 17, 2025 · 0 comments
Labels
enhancement New feature or request swr-openapi Relevant to swr-openapi library

Comments

@bonniss
Copy link

bonniss commented Jan 17, 2025

Description

In my case, some endpoints are POST, but for getting data only. I cannot/do not want to change the API.
The docs state that path can only be any endpoint that supports GET requests.

Proposal

Can we add one version of useQuery, kinda like useQueryFull (okay, naming sucks) that supports valid paths regardless of method?

Extra

@bonniss bonniss added enhancement New feature or request swr-openapi Relevant to swr-openapi library labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request swr-openapi Relevant to swr-openapi library
Projects
None yet
Development

No branches or pull requests

1 participant