@scalar/api-client
Version:
the open source API testing client
14 lines • 428 B
TypeScript
import type { RequestMethod } from '@scalar/oas-utils/entities/spec';
/** Parse and normalize a curl command */
export declare function parseCurlCommand(curlCommand: string): {
url: string;
method?: RequestMethod;
headers?: Record<string, string>;
body?: string;
queryParameters?: Array<{
key: string;
value: string;
}>;
servers?: string[];
};
//# sourceMappingURL=parse-curl.d.ts.map