UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

40 lines (39 loc) 1.23 kB
import { type OpenAPI } from 'ya-open-api-types'; import { type Jsonify } from 'type-fest'; export declare const definition: { readonly path: "/openAPI"; readonly method: "get"; readonly operation: { readonly operationId: "getOpenAPI"; readonly summary: "Get the API documentation."; readonly tags: ["system"]; readonly responses: { readonly '200': { readonly description: "Provides the private Open API documentation"; readonly content: { readonly 'application/json': { readonly schema: { readonly type: "object"; }; }; }; }; }; }; }; declare const _default: import("knifecycle").ServiceInitializer<{ API: OpenAPI; }, ({ query: { mutedMethods, mutedParameters, mutedTags }, options: { authenticated }, }: { query: { mutedMethods?: string[]; mutedParameters?: string[]; mutedTags?: string[]; }; options?: { authenticated?: boolean; }; }) => Promise<{ status: number; body: Jsonify<OpenAPI>; }>>; export default _default;