import { MethodType, PrimitiveTypes } from './openApi'; export interface ControllerInfo { refSet: Set; apiInfoList: ApiInfo[]; hasMultiRootUrl: boolean; } export interface ApiInfo { path: string; methodInfoList: MethodInfo[]; } export interface MethodInfo { methodName: string; methodType: MethodType; methodSummary: string; request: RequestInfo | null; response: ResponseInfo | null; } export interface RequestInfo { contentType: ContentType; queryParamList: QueryParam[] | null; jsonBody: JsonBody | null; } export interface QueryParam { name: string; type: PrimitiveTypes; required: boolean; } export interface JsonBody { name: string; type: string; required: boolean; } export interface ResponseInfo { type: string; } export type ContentType = 'formData' | 'json'; export type ByContentType = { [key in ContentType]: string; };