Interface APIDefine<T>

interface APIDefine<T> {
    before?: T[];
    body?: Record<string, ISchemaType>;
    description?: string;
    group?: string;
    handler?: T;
    headers?: Record<string, ISchemaType>;
    method: "delete" | "get" | "patch" | "post" | "put";
    middlewares?: T[];
    mock?: Record<string, any>;
    params?: Record<string, ISchemaType>;
    path: string;
    query?: Record<string, ISchemaType>;
    required?: string[];
    requiredOneOf?: string[];
    response?: TYPE_RESPONSE;
    title: string;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

before?: T[]
body?: Record<string, ISchemaType>
description?: string
group?: string
handler?: T
headers?: Record<string, ISchemaType>
method: "delete" | "get" | "patch" | "post" | "put"
middlewares?: T[]
mock?: Record<string, any>
params?: Record<string, ISchemaType>
path: string
query?: Record<string, ISchemaType>
required?: string[]
requiredOneOf?: string[]
response?: TYPE_RESPONSE
title: string

Generated using TypeDoc