Amagi API 文档 - v5.13.0
    正在准备搜索索引...

    接口 ApiEndpoint<TParams, TResponse, TQuery, TBody>

    API 端点定义

    interface ApiEndpoint<
        TParams = unknown,
        TResponse = unknown,
        TQuery = unknown,
        TBody = unknown,
    > {
        path: string;
        method: HttpMethod;
        description: string;
        tags: string[];
        params?: TParams;
        query?: TQuery;
        body?: TBody;
        response: TResponse;
    }

    类型参数

    • TParams = unknown
    • TResponse = unknown
    • TQuery = unknown
    • TBody = unknown
    索引

    属性

    path: string

    端点路径

    method: HttpMethod

    HTTP 方法

    description: string

    端点描述

    tags: string[]

    端点标签/分类

    params?: TParams

    路径参数 schema

    query?: TQuery

    查询参数 schema

    body?: TBody

    请求体 schema

    response: TResponse

    响应 schema