Custom API

Examples showing how to build custom API endpoints in the # folder.

Crea­te cus­tom API func­tion­s

EXAMPLE - Creating your custom API is needed if you want to make interactive functions in your sites. API functions are not cached (by…

Crea­te cus­tom JWT lo­gin

How to implement a custom JWT login for your web application, encompassing the creation of a unique login page, the setup of an…

Send mail from API func­tio­n

Follow this example to send email from your application.

DIAG­RAM - Sta­tic and dy­namic si­tes.pd­f

Au­to re­load pa­ge if cac­hed and out­date­d

By the use this API-function and javascript you can automatically hard reload a page if it has been updated on server.

Cal­ling ex­ter­nal API­s

Examples for API functions calling external WEB APIs (JSON) with POST and GET. IMPORTANT: These functions are only available from the #/API…

Sen­ding SMS th­rough BulkSMS ga­teway from Doc­ly JS API

This example will send an SMS from your Docly JS API to a phonenumber. It requires an account at BulkSMS and credits.

Fix uni­que RO­WID va­lues in a si­te

This API function identifies and optionally sets new ROWID values in a site if there are duplicates.

Re­turn em­bed­ded fi­le th­rough API with cac­hin­g

Reads a logo image file from a #/Config file and returns it to the client with caching.