@scalar/api-client
Version:
the open source API testing client
17 lines • 846 B
TypeScript
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
import type { AvailableClients } from '@scalar/snippetz';
import type { OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
type Props = {
clientId: AvailableClients[number];
operation: OperationObject;
example?: string | undefined;
method: HttpMethod;
path: string;
contentType?: string | undefined;
server?: ServerObject | undefined;
securitySchemes?: SecuritySchemeObject[] | undefined;
};
/** Generate the code snippet for the selected example OR operation */
export declare const generateCodeSnippet: ({ clientId, operation, method, path, example, contentType, server, securitySchemes, }: Props) => string;
export {};
//# sourceMappingURL=generate-code-snippet.d.ts.map