OpenAPI-Qraft / openapi-qraft

Generate a type-safe TanStack Query React ✨ client from your OpenAPI document
https://openapi-qraft.github.io/openapi-qraft/
MIT License
36 stars 3 forks source link

Query for Post request #188

Open wengergruppe opened 2 months ago

wengergruppe commented 2 months ago

Hi, is there way to override config to generate Query for requests with method POST instead of mutation.

radist2s commented 2 months ago

@wengergruppe, thank you for your question. Currently, Qraft doesn’t support transforming operations from one method (e.g., mutation) to another, and we don’t have any plans to add such functionality.

If you’re looking to modify your OpenAPI Document by changing the operation type (e.g., from GET to POST), you might need to use a third-party OpenAPI transformation tool.

I’ll mention @hkosova here, who might be able to suggest some tools or workflows to help with this kind of transformation.