mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 17:06:57 -06:00
28 lines
823 B
TypeScript
28 lines
823 B
TypeScript
|
// Generates Redux Toolkit API slices for certain APIs from the OpenAPI spec
|
||
|
import type { ConfigFile } from '@rtk-query/codegen-openapi';
|
||
|
|
||
|
const config: ConfigFile = {
|
||
|
schemaFile: '../public/openapi3.json',
|
||
|
apiFile: '', // leave this empty, and instead populate the outputFiles object below
|
||
|
hooks: true,
|
||
|
|
||
|
outputFiles: {
|
||
|
'../public/app/features/migrate-to-cloud/api/endpoints.gen.ts': {
|
||
|
apiFile: '../public/app/features/migrate-to-cloud/api/baseAPI.ts',
|
||
|
apiImport: 'baseAPI',
|
||
|
filterEndpoints: [
|
||
|
'createCloudMigrationToken',
|
||
|
'getMigrationList',
|
||
|
'getCloudMigration',
|
||
|
'createMigration',
|
||
|
'runCloudMigration',
|
||
|
'getCloudMigrationRun',
|
||
|
'getCloudMigrationRunList',
|
||
|
'deleteCloudMigration',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default config;
|