- makeHttpApi<ReqHeadersT, ReqParamsT, ReqQueryT, ReqBodyT, ResStatusT, ResHeadersT, ResBodyT, ErrResStatusT, ErrResHeadersT, ErrResBodyT>(api): HttpApi<ReqHeadersT, ReqParamsT, ReqQueryT, ReqBodyT, ResStatusT, ResHeadersT, ResBodyT, ErrResStatusT, ErrResHeadersT, ErrResBodyT>
Type Parameters
- ReqHeadersT extends AnyHeaders = undefined
- ReqParamsT extends AnyParams = undefined
- ReqQueryT extends AnyQuery = undefined
- ReqBodyT extends unknown = undefined
- ResStatusT extends number = number
- ResHeadersT extends AnyHeaders = undefined
- ResBodyT extends unknown = undefined
- ErrResStatusT extends number = number
- ErrResHeadersT extends AnyHeaders = undefined
- ErrResBodyT extends unknown = undefined
Parameters
- api: Omit<HttpApi<ReqHeadersT, ReqParamsT, ReqQueryT, ReqBodyT, ResStatusT, ResHeadersT, ResBodyT, ErrResStatusT, ErrResHeadersT, ErrResBodyT>, "isYaschemaApi" | "name" | "isYaschemaHttpApi"> & {
name?: string;
}
If name is omitted, it will be generated as: