Methods
ajax
- ajax(url: string, method: string, init: any): Promise<any>
-
Parameters
-
url: string
-
method: string
-
init: any
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
del
- del(url: string, init: any): Promise<any>
-
Parameters
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
endpoint
- endpoint(apiName: string): string
-
Parameters
Returns string
get
- get(url: string, init: any): Promise<any>
-
Parameters
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
head
- head(url: string, init: any): Promise<any>
-
Parameters
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
patch
- patch(url: string, init: any): Promise<any>
-
Parameters
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
post
- post(url: string, init: any): Promise<any>
-
Parameters
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
put
- put(url: string, init: any): Promise<any>
-
Parameters
Returns Promise<any>
- A promise that resolves to an object with response status and JSON data, if successful.
HTTP Client for REST requests. Send and receive JSON data. Sign request with AWS credentials if available Usage: