vitepress-openapi
Version:
Generate VitePress API Documentation from OpenAPI Specification.
7 lines (6 loc) • 696 B
TypeScript
import type { PlaygroundSecurityScheme } from '../../types';
import { OARequest } from './request';
export declare function getAuthorizationsHeaders(authorizations: PlaygroundSecurityScheme | PlaygroundSecurityScheme[]): Headers;
export declare function getAuthorizationsQuery(authorizations: PlaygroundSecurityScheme | PlaygroundSecurityScheme[]): Record<string, string>;
export declare function getAuthorizationsCookies(authorizations: PlaygroundSecurityScheme | PlaygroundSecurityScheme[]): Record<string, string>;
export declare function buildRequest({ url, path, method, baseUrl, parameters, authorizations, body, headers, variables, cookies, contentType, }: Partial<OARequest>): OARequest;