Based on actual business needs, we generally categorize APIs into two types: Advanced APIs and CRDs (Custom Resource Definitions). Therefore, the directory structure is typically organized as follows:
Refer to CodeQualityTaskSummary.
props
path
: The path under OpenAPI schema paths
pathPrefix
: Can be used to override the api.pathPrefix
in global configurationopenapiPath
: Refer to Specifying OpenAPI PathRefer to ArtifactCleanupRun.
props
name
: CRD metadata.name
crdPath
: Similar to Specifying OpenAPI Path, used to specify a particular CRD fileRefer to CodeQuality.
props
schema
: The name under OpenAPI schema definitions
(v2) or components/schemas
(v3)openapiPath
: Refer to Specifying OpenAPI PathFor the OpenAPIPath
and OpenAPIRef
components, the default behavior is to search for matches across all OpenAPI definition files. If you need to specify a particular OpenAPI file, you can use the openapiPath
property: