Server Script APIs

The server script helps in creating a proxy layer for a service, create back-end logic to access database and more. You can create server logic and web services as JavaScript code. Web Service is a server script which is accessible from the internet to do the desired functionality.

You can write server script for the purpose of delivering the below possibilities but not limited to:

  • Creating proxy layer for a web service to avoid any sensitive information being revealed
  • To implement a new functionality using code at the back-end

Perform the following steps:

  1. Launch ASG Studio.
  2. Open the project in which you want to create Server Script.
  3. Click the context menu, select New, and click Server Script.
  4. Enter a name for the Server Script file and click OK.
  5. In the script editor write your script and click Save.
  6. Click Copy to copy the path of the sever script file. You can use this path as URL to execute the server script.

The Server Script API methods are grouped into the following categories: