Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Protected _auth

Accessors

api_endpoint

  • get api_endpoint(): string

Methods

delete

findRequestHandler

get

patch

post

put

register

  • register<T>(path: string, data: any, method?: HttpVerb, callback?: undefined | ((handler: MockHttpRequest<T>) => any)): void
  • Register handler for http endpoint

    Type parameters

    • T

    Parameters

    • path: string

      URL to be handled

    • data: any

      Data associated with the results of the endpoint

    • Default value method: HttpVerb = "GET"

      HTTP Verb to listen to

    • Optional callback: undefined | ((handler: MockHttpRequest<T>) => any)

      Callback for handling request to the given endpoint

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc