Spanish Total.js
English
Documentation For AI agents
Contents

Editor addresses

The addresses in Global settings that connect the editor to your own server, and what each must answer.

.md GitHub
On this page

The address fields in Global settings connect the editor to your own server. The browser calls them directly, so a server on another address must allow requests from the address of UI Builder (CORS).

The address fields of the Global settings form

Lists the editor reads

The editor reads these addresses with a GET request. Each must answer a JSON array.

FieldAnswerUsed for
URL address for obtaining paths[{ id: String, name: String, type: String }]Extra entries in Read value from of every component. id is the path, name the text shown, type a short tag.
URL address for obtaining codes[{ id: String, name: String }]Code lists that components can choose from.
URL address for obtaining data views[{ id: String, name: String, type: String }]Data views that components can choose from.
URL address for obtaining list of UI designs[{ id: String, name: String }]Other designs that components can refer to.

Example answer for paths:

[
    { "id": "user.name", "name": "User name", "type": "string" },
    { "id": "user.email", "name": "User email", "type": "email" }
]

Upload

URL address for uploading files receives files with a POST request (multipart/form-data), for example the floor plan of a Flowboard. It must answer:

[
    { "id": "plan1", "name": "plan.png", "url": "https://www.example.com/files/plan.png", "size": 1000, "ext": "png" }
]

Save, publish and render

These three receive the design with a POST request. The body is URL encoded, with one field data that holds the design as JSON.

FieldSent byContent of data
URL address for saving dataSAVEThe editable design, like _editor.json.
URL address for publishing dataPublishThe published design, like _render.json.
URL address for rendering dataPreviewThe published design. The browser opens the answer in a new tab.

For save and publish, answer with a JSON object such as {"success":true}.

Made in Europe