Swagger files with POST instead of GET #1146
Answered
by
stijnvanhulle
filipjakov
asked this question in
Q&A
-
I have an API implementation that uses POST instead of GET for some requests. I want to turn these POST requests to I tried something overrides in kubb.config.ts: override: [
// {
// type: 'operationId',
// pattern: '.*_get.*',
// options: {
// mutate: false,
// },
// },
{
type: 'operationId',
pattern: '.*_get.*',
options: {
templates: {
// @ts-expect-error
mutation: Query.templates,
},
},
},
], but failed as expected. |
Beta Was this translation helpful? Give feedback.
Answered by
stijnvanhulle
Aug 27, 2024
Replies: 1 comment
-
For that you can use methods, see https://www.kubb.dev/plugins/swagger-tanstack-query/#methods
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
filipjakov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For that you can use methods, see https://www.kubb.dev/plugins/swagger-tanstack-query/#methods