REST Client
Introduction
The RestClient Class
Synopsis
class RestClient {
constructor(string basePath, string token);
api(string method, string path, Object args, Object headers = {}) : Promise<Response>
get(string path, Object args = {}) : Promise<Response>
post(string path, Object args = {}) : Promise<Response>
put(string path, Object args = {}) : Promise<Response>
delete(string path, Object args = {}) : Promise<Response>
encodeQuery(Object args = {}) : string
}Examples
Instantiate RestClient
Request Methods
Simple Example
Exhaustive Example
Batching requests
Last updated