config/openapi.ts

strapi · packages/core/types/src/core/config/openapi.ts · typescript · MIT
auth, tag:embed-classified

TypeScript types for configuring OpenAPI endpoints in Strapi.

// Source: https://github.com/strapi/strapi | License: MIT | Copyright 2015-present Strapi Solutions SAS
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Controls whether an OpenAPI endpoint is exposed and how it is protected.
 *
 * - `disabled` (default): the endpoint is not registered.
 * - `public`: content-api only; the endpoint is registered without
 *   authentication (anyone can read the spec).
 * - `authenticated`: admin only; requires an authenticated admin. Granular
 *   per-permission RBAC is intentionally left for a later iteration.
 */
export type OpenAPIContentAPIAccess = 'disabled' | 'public';
export type OpenAPIAdminAccess = 'disabled' | 'authenticated';
export type OpenAPIAccess = OpenAPIContentAPIAccess | OpenAPIAdminAccess;

export interface OpenAP

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key