mirror of
https://github.com/grafana/grafana.git
synced 2024-12-26 08:51:33 -06:00
aad79c9400
* E2C: Start connecting on-prem to real apis * actually run the migration * show resources * basic dashboards resources * show dashboard title * remove console logs * cleanup 1 * i18n * disconnect * i18n * restore type * use fixed format * fix
30 lines
882 B
TypeScript
30 lines
882 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,
|
|
exportName: 'generatedAPI',
|
|
|
|
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',
|
|
'getDashboardByUid',
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|