Api: generate RTK Query for Edge

This commit adds the Edge API to RTK Query in preparation of porting edge source code to image-builder-frontend
This commit is contained in:
mgold1234 2023-09-04 11:42:25 +03:00 committed by Lucas Garfield
parent 85ab893c2b
commit e266073718
7 changed files with 5801 additions and 0 deletions

13
api/config/edge.ts Normal file
View file

@ -0,0 +1,13 @@
import type { ConfigFile } from '@rtk-query/codegen-openapi';
const config: ConfigFile = {
schemaFile: '../schema/edge.json',
apiFile: '../../src/store/emptyEdgeApi.ts',
apiImport: 'emptyEdgeApi',
outputFile: '../../src/store/edgeApi.ts',
exportName: 'edgeApi',
hooks: true,
filterEndpoints: ['getAllImages', 'getImageStatusByID', 'getImageByID'],
};
export default config;

5722
api/schema/edge.json Normal file

File diff suppressed because it is too large Load diff