Utilities for web service (rest)

Back: Functional utilities of the application

Web service utilities are designed to implement the processing of various types of server requests.
The service connects to the application in deploy.json in the modules.rest.globals.di object, for example:

In this case, the service acceptor is connected, it will become available for requests at the url https://dnt.iondv.com/rest/acceptor.
A functional description of interaction with requests should be contained in a script``modules/rest/lib/impl/acceptor.js``.
In the options field, any variables and their values can be indicated, which will become available in the script through the fields of the object passed as an argument to the main function of the module.

The script is compiled in the module format, for example:

For a detailed description of how to create a service, see https://github.com/iondv/rest/blob/master/README_RU.md #### Development of a service handler in the application