When to create API endpoint
There are several situations, where you need a specific endpoint for your application:
- Custom business logic is required
- Calling 3rd party systems is necessary
- Client API does not offer desired functions
An API Endpoint is Groovy/Java class compiled and executed on the server at runtime. It may use 3rd party JAR libraries provided as JAR resource inside the extension.
On the source code level, it's possible to use variety of classes and methods, including access to basic BellaDati objects and data - Data sets, Reports, Machine Learning.
API Endpoint is exposed to the outter world using HTTP server and is accepting HTTP GET, POST, DELETE and PUT requests.
API Endpoint a class written is Groovy/Java and overriding doGet(), doPost(), doPut() and doDelete() methods.
Beside types and packages below, all types and packages from provided JAR library are on white list too.