@stuntman/client
Version:
Stuntman - HTTP proxy / mock API client
16 lines • 683 B
TypeScript
import type * as Stuntman from '@stuntman/shared';
export declare class Client {
private options;
private get baseUrl();
constructor(options?: Partial<Stuntman.ClientConfig>);
private fetch;
getRules(): Promise<Stuntman.LiveRule[]>;
getRule(id: string): Promise<Stuntman.LiveRule>;
disableRule(id: string): Promise<void>;
enableRule(id: string): Promise<void>;
removeRule(id: string): Promise<void>;
addRule(rule: Stuntman.SerializableRule): Promise<Stuntman.Rule>;
getTraffic(rule: Stuntman.Rule): Promise<Stuntman.LogEntry[]>;
getTraffic(ruleIdOrLabel: string): Promise<Stuntman.LogEntry[]>;
}
//# sourceMappingURL=apiClient.d.ts.map