Next step is to create a RESTful service to expose the entity management operations. In this example we will use server-side JavaScript.

There will be three artifacts generated:

  1. a DAO service library, which exports all the needed functions to make get, list, update, delete, count, metadata, etc.
  2. a wrapper service, which uses the DAO library and exposes remotely accessible end-point
  3. an *.entity file - JSON formated design time utility artifact

These artifacts will be created under the ScriptingServices folder of your project.

More information about how to manually create such a Scripting Service, as well as the general concepts behind, can be found at: http://www.dirigible.io/samples/entity_service.html and http://www.dirigible.io/help/entity_service.html

More information about the Scripting Services in general, can be found at: http://www.dirigible.io/help/scripting_services.html

Injected API, which can be used within the Scripting Services code and also available in the code-completion, can be found at: http://api.dirigible.io