api-def API Reference
    Preparing search index...

    Class Endpoint<TResponse, TParams, TQuery, TBody, TState, TPath, TRequestHeaders, TResponseHeaders>

    Type Parameters

    Implements

    Index
    api: Api
    • get description(): string | undefined

      Describe your endpoint to help with debugging and documentation

      Returns string | undefined

    • get id(): string

      Returns string

    • get mocking(): | EndpointMockingConfig<
          TResponse,
          TParams,
          TQuery,
          TBody,
          TState,
      >
      | undefined

      Specify mocking for your endpoint upfront to help with disconnected dev, and testing. Enable/disable mocked returns for all endpoints on your API object.

      Returns EndpointMockingConfig<TResponse, TParams, TQuery, TBody, TState> | undefined

    • get name(): string

      Name your endpoint to help with debugging and documentation

      Returns string

      id is used as the name if no name is supplied

    • Parameters

      • options: EndpointResolvePathOptions<TParams>

      Returns string