bodySchema: TBody
The standard schema for the request body.
description: string
The description of the endpoint. @example Get all users
The execute function for the endpoint. responsible for handling the request.
isAuthorized: HeimdallEndpointAuthorizer<TBody, TSearch, TParams, TServices>
method: HttpMethod
The HTTP method for the endpoint. @example GET, POST, PUT, DELETE
noopAuthorizer: HeimdallEndpointAuthorizer<TBody, TSearch, TParams, TServices>
paramsSchema: TParams
The standard schema for the request params.
path: HeimdallPath
the endpoint path. @example /api/v1/users
responseSchema: TResponse
The standard schema for the response body.
searchSchema: TSearch
The standard schema for the request search query.
isErrorResponse(response: unknown): response is HeimdallEndpointErrorResponse
Checks if the given response is a HeimdallEndpointErrorResponse.
isResponse(response: unknown): response is HeimdallEndpointResponse
Checks if the given response is a HeimdallEndpointResponse.
isSuccessResponse(response: unknown): response is HeimdallEndpointSuccessResponse
Checks if the given response is a HeimdallEndpointSuccessResponse.