AppDrag Support Center

Creating my First Function

Let's create your first AppDrag Cloud Backend API function by clicking on "New Function" in the left menu under "API".

The new function screen appears You have the choice between:
  • Visual SQL API functions that are connected to the CloudBackend Database. A simple interface is provided so that no coding is necessary.
  • SQL Perform manual queries on your CloudBackend Database.
  • Code Powerful API functions.

For this example, we will select "Node.js 8.10" with the sample "POST Parameters".
This sample function reads the POST parameters and outputs it
 
This sample function is ready to run without any code changes. You can click the "Try" button at the top-right corner, and fill your test POST parameters in the modal.
 
In the payload the response from the API function is returned containing the POST parameters. This gives you a solid point for the writing of your own functions, as opposed to just returning a basic message.  For example, you can send an email, insert the info into your database, open a confirmation HTML content, etc.

For more information on the code itself, you can check out this article.

 

Other articles

Need More Help?

FAQ

If we've been asked before, it's in our Frequently Asked Questions!

Open FAQ

CHAT

Chat directly with the AppDrag team!

Open WebChat

Certified Partners

Not enough time to build your site? Find a Certified Partner to help you!

More Info