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
31 stars 3 forks source link

Query for Post request #188

Open wengergruppe opened 3 weeks ago

wengergruppe commented 3 weeks ago

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

radist2s commented 2 weeks 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.