Swagger files with POST instead of GET #1146
-
|
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.
Replies: 2 comments
-
|
For that you can use methods, see https://www.kubb.dev/plugins/swagger-tanstack-query/#methods |
Beta Was this translation helpful? Give feedback.
-
|
@stijnvanhulle tried lts (3.6.5) and it looks like this feature is not available any more? intended, regression or did i misconfigure something? |
Beta Was this translation helpful? Give feedback.
For that you can use methods, see https://www.kubb.dev/plugins/swagger-tanstack-query/#methods