apiveritas
Version:
Lightweight CLI tool for consumer-driven API contract testing via JSON schema and payload comparisons.
19 lines (17 loc) • 447 B
text/typescript
export interface IApiRequest {
name: string;
url: string;
method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; // default to GET if not provided
auth?: {
username: string;
password: string;
};
body?: any;
expectedStatus?: number;
/**
* Optional name of the test suite this request belongs to.
* Used to organize saved responses under payloads/{testSuite}/
*/
testSuite?: string;
baseUrl?: string;
}