Constructors
constructor
- new BaseAPI(configuration?): BaseAPI
-
Properties
Protected
configuration
Methods
Protected
request
- request(context): Promise<Response>
-
Returns Promise<Response>
withMiddleware
- withMiddleware<T>(this, ...middlewares): T
-
Returns T
withPostMiddleware
- withPostMiddleware<T>(this, ...postMiddlewares): T
-
Parameters
-
this: T
-
Rest
...postMiddlewares: (undefined | ((context) => Promise<void | Response>))[]
Returns T
withPreMiddleware
- withPreMiddleware<T>(this, ...preMiddlewares): T
-
Parameters
-
this: T
-
Rest
...preMiddlewares: (undefined | ((context) => Promise<void | FetchParams>))[]
Returns T
This is the base class for all generated API classes.