@trapi/metadata
Version:
Generate REST-API metadata scheme from TypeScript Decorators.
23 lines • 690 B
TypeScript
import type { BaseType, Extension } from '../../resolver';
import type { Parameter } from '../parameter';
import type { Response, Security } from '../type';
export interface Method {
operationId?: string;
deprecated?: boolean;
description: string;
method: MethodType;
extensions: Extension[];
name: string;
parameters: Parameter[];
path: string;
type: BaseType;
tags: string[];
responses: Response[];
security?: Security[];
summary?: string;
consumes: string[];
produces: string[];
hidden: boolean;
}
export type MethodType = 'get' | 'post' | 'put' | 'delete' | 'options' | 'head' | 'patch';
//# sourceMappingURL=type.d.ts.map