API: Add Compliance API slice

This commit adds the Compliance service's API, which we can query for a
list of SCAP security policies.

In a follow-up PR, we will allow the user to optionally select a policy
when creating an image in the wizard.
This commit is contained in:
lucasgarfield 2023-09-28 13:49:46 +02:00 committed by Lucas Garfield
parent c7ef446fdb
commit 36f9e70565
8 changed files with 65 additions and 0 deletions

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

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

File diff suppressed because one or more lines are too long