mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 19:54:10 -06:00
9d3a4e236d
* rename some stuff * more renaming * clean up api * rename more functions * rename cms -> gms * update comment * update swagger gen * update endpoints * overzealous * final touches * dont modify existing migrations * break structs into domain and dtos * add some conversion funcs * fix build * update frontend * try to make swagger happy
30 lines
864 B
TypeScript
30 lines
864 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',
|
|
'getSessionList',
|
|
'getSession',
|
|
'createSession',
|
|
'deleteSession',
|
|
'runCloudMigration',
|
|
'getCloudMigrationRun',
|
|
'getCloudMigrationRunList',
|
|
'getDashboardByUid',
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|