Directus / @directus/sdk / rest / readOpenApiSpec
Function: readOpenApiSpec() ​
readOpenApiSpec<
Schema>():RestCommand<OpenApiSpecOutput,Schema>
Defined in: rest/commands/server/openapi.ts:11
Retrieve the OpenAPI spec for the current project.
Type Parameters ​
• Schema
Returns ​
RestCommand<OpenApiSpecOutput, Schema>
Object conforming to the OpenAPI Specification