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:
parent
85ab893c2b
commit
e266073718
7 changed files with 5801 additions and 0 deletions
13
api/config/edge.ts
Normal file
13
api/config/edge.ts
Normal 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
5722
api/schema/edge.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue