refactor(client): use generated API client and hooks
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
19
client/cms/openapi-ts.config.ts
Normal file
19
client/cms/openapi-ts.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from '@hey-api/openapi-ts';
|
||||
|
||||
export default defineConfig({
|
||||
input: 'http://10.0.0.10:8000/swagger/doc.json', // sign up at app.heyapi.dev
|
||||
output: 'src/client',
|
||||
plugins: [
|
||||
'@hey-api/typescript',
|
||||
'@tanstack/react-query',
|
||||
'zod',
|
||||
{
|
||||
name: '@hey-api/transformers',
|
||||
dates: true,
|
||||
},
|
||||
{
|
||||
name: '@hey-api/sdk',
|
||||
transformer: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user