novorender-api-docs / DataJsAPI / createAPI
Function: createAPI()
function createAPI(options?): API
Create an instance of the NovoRender Server API.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | APIOptions | Custom settings ServerAPIOptions to create API. |
Returns
An initialized API object
Remarks
The Server API requires that a user with appropriate access to server resources has already been logged in. Unless you are developing a purely public web app, you may want to check the credentials property in the returned API and redirect to a login page if need be.