RestAPI
The RestAPI is a class that binds a REST API server.
import { RestAPI } from "@schukai/monster/source/data/datasource/server/restapi.mjs";Exported
RestAPIDerived from
ServerOptions
The Options listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the Server.
Properties
The Properties listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Properties from these parent classes. If you cannot find a specific Properties in this list, we recommend consulting the documentation of the Server.
Methods
The methods listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the Server.
Constructor
constructor([options])[options]{object}: options contains definitions for the datasource.
Structural methods
getClone()- {RestAPI}
Static methods
[instanceSymbol]()2.1.0- {symbol}
instanceof operator.Other methods
read()- {Promise}
{Error}the options does not contain a valid json definition{TypeError}value is not a object{Error}the data cannot be read
write()- {Promise}
{WriteError}the data cannot be written
Events
This component does not fire any public events. It may fire events that are inherited from its parent classes.