Skip to main content

JavaScript API

Shesha allows you to interact with the application using its JavaScript API. This API can be used in any user-defined code at the form or form component level. The central point of the JavaScript API is the exposed APPLICATION variable, which provides access to all standard Shesha objects (e.g. user, settings, entities, etc.).

📄️ HTTP Requests

HTTP is the object that provides access to the HTTP API that can be used to make HTTP requests. HTTP Requests are the lifeblood of a Shesha application. In order for the application to function well, the front-end needs to send data to the backend, for that data to be saved in the database. This is where HTTP requests come in. The Shesha front-end uses axios under the hood, and an axios instance is exposed on almost all the available Scripts on the configurator. For more on Shesha Scripts, see here.