erest
    Preparing search index...

    Interface APIDefine<T>

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

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

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