Skip to main content

novorender-api-docs / DataJsAPI / createAPI

Function: createAPI()

function createAPI(options?): API

Create an instance of the NovoRender Server API.

Parameters

ParameterTypeDescription
options?APIOptionsCustom settings ServerAPIOptions to create API.

Returns

API

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.