Infohub JS API
Loading...
Searching...
No Matches
RestServices Class Reference

Description

Helper class for Rest services.


Provides methods such as for making HTTP API calls.

Examples
C:/xampp/htdocs/InfohubJsApi/src/tools/RestServices.js.

Static Public Member Functions

static async makeApiCall (token, method, fullpath, body=null, acceptType="application/json", contentType="application/json", responseType="auto")

Static Public Attributes

static METHODS

Function Documentation

◆ makeApiCall()

async makeApiCall ( token,
method,
fullpath,
body = null,
acceptType = "application/json",
contentType = "application/json",
responseType = "auto" )
static

Member Data Documentation

◆ METHODS

METHODS
static
Initial value:
= {
GET: "GET",
POST: "POST",
PUT: "PUT",
DELETE: "DELETE",
PATCH: "PATCH",
}
Examples
C:/xampp/htdocs/InfohubJsApi/src/tools/RestServices.js.