Points: where the drawing's points are
POST /points runs the template with the values given and returns its points: each one's name, where it is (in
the drawing's units) and how it is defined. A drawing of several pages gives the points of the page it
opens on: each page has its own.
The body is a template (as template, or as source from one of your storages) and values for its labelled variables, as described on the API page.
Example
POST /points
X-API-KEY: your-api-key
Content-Type: application/json
{
"template": "L=400,\"Length\"\nW=300,\"Width\"\nP1=[L,0]\nP2=[L,W]\nP3=[0,W]\nPOLYLINE @1,[P0,P1,P2,P3],TRUE,0",
"values": { "L": 500, "W": 250 }
}
[
{ "name": "P0", "x": 0, "y": 0, "definition": "#O" },
{ "name": "P1", "x": 500, "y": 0, "definition": "[L,0]" },
{ "name": "P2", "x": 500, "y": 250, "definition": "[L,W]" },
{ "name": "P3", "x": 0, "y": 250, "definition": "[0,W]" }
]
A point that can't be worked out with the values given is left out.