API
Class to create API wrappers.
Constructor Summary
| Public Constructor | ||
| public |
constructor(xhr: Function, Promise: Function, location: Location) Creates a new API wrapper. |
|
Method Summary
| Public Methods | ||
| public |
Extends the API wrapper with new methods. |
|
| public |
Combines multiple arguments into a single xhr options object. |
|
| public |
Performs a request and returns a Promise. |
|
Public Constructors
Public Members
public Promise: * source
public defaults: * source
public location: * source
public xhr: * source
Public Methods
public extend(methods: Object) source
Extends the API wrapper with new methods.
Params:
| Name | Type | Attribute | Description |
| methods | Object |