express-oven
Version:
An easy mock API generator with express.js
7 lines (4 loc) • 330 B
TypeScript
import { OperationConfig, PartialOperationConfig } from './operations';
export type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
export type ApiConfig = Record<string, Partial<Record<HttpMethod, OperationConfig>>>;
export type PartialApiConfig = Record<string, Partial<Record<HttpMethod, PartialOperationConfig>>>;