debian-image-builder-frontend/api/config/imageBuilder.ts
Thomas Lavocat 45b717bc27 openapi: import from yaml instead of JSON
Use the yaml representation of the openapi used in Image Builder to load
generate the RTKQ code.
2023-08-30 15:14:19 +02:00

20 lines
513 B
TypeScript

import type { ConfigFile } from '@rtk-query/codegen-openapi';
const config: ConfigFile = {
schemaFile: '../schema/imageBuilder.yaml',
apiFile: '../../src/store/emptyImageBuilderApi.ts',
apiImport: 'emptyImageBuilderApi',
outputFile: '../../src/store/imageBuilderApi.ts',
exportName: 'imageBuilderApi',
hooks: true,
filterEndpoints: [
'getComposes',
'getComposeStatus',
'getComposeClones',
'getCloneStatus',
'getArchitectures',
'getPackages',
],
};
export default config;