AbstractConstructor for WebService base class. Note: For subclasses of this, it is recommended to use IWebServiceProps to simplify user implementation usage.
internal props
ReadonlyinstanceinstanceId of WebService.
ProtectedloggerReadonlynameFriendly name of webservice.
ReadonlypackageReadonlyportProtectedstateProtectedgetReturns the current application state shared across routers.
the app state instance
Installs the WebService to the app.
for install
Whether the app is installed or not.
Serializes the web service to a plain JSON-compatible object. Logger and state are omitted for safety.
JSON representation of this web service
Returns a JSON string representation of this web service.
stringified JSON of the web service
Uninstalls the WebService from the app.
for uninstall
Removes all currently installed middleware from the Express app.
Base web service class to be implemented.