Documentation
    Preparing search index...

    Interface IHttpMigrateRoute

    HTTP route converted from OpenAPI operation.

    IHttpMigrateRoute represents a single API endpoint with all request/response schemas resolved and ready for code generation. Contains parameters for URL path variables, query for query strings, headers, body for request payload, and success/exceptions for responses.

    Jeongho Nam - https://github.com/samchon

    interface IHttpMigrateRoute {
        accessor: string[];
        body: IBody | null;
        comment: () => string;
        emendedPath: string;
        exceptions: Record<string, IException>;
        headers: IHeaders | null;
        method: "get" | "post" | "put" | "delete" | "head" | "patch" | "query";
        operation: () => OpenApi.IOperation;
        parameters: IHttpMigrateRoute.IParameter[];
        path: string;
        query: IQuery | null;
        success: IHttpMigrateRoute.ISuccess | null;
    }
    Index

    Properties

    accessor: string[]

    Accessor path for generated RPC function.

    Namespaces from static path segments, function name from method + parameters. delete becomes erase to avoid reserved keyword.

    body: IBody | null

    Request body metadata. Null if none.

    comment: () => string

    Returns description comment for the RPC function.

    emendedPath: string

    Emended path with :param format, always starts with /.

    exceptions: Record<string, IException>

    Exception responses keyed by status code.

    headers: IHeaders | null

    Combined headers as single object. Null if none.

    method: "get" | "post" | "put" | "delete" | "head" | "patch" | "query"

    HTTP method.

    operation: () => OpenApi.IOperation

    Returns source OpenApi.IOperation.

    Path parameters only.

    path: string

    Original path from OpenAPI document.

    query: IQuery | null

    Combined query parameters as single object. Null if none.

    success: IHttpMigrateRoute.ISuccess | null

    Success response (200/201). Null if void return.