Skip to content

Commit c15b226

Browse files
author
github-actions
committed
Update REST API documentation Tue Apr 22 17:05:32 UTC 2025
1 parent 6e87201 commit c15b226

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

restapi.json

+98
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,52 @@
13161316
}
13171317
}
13181318
}
1319+
},
1320+
"/templates": {
1321+
"get": {
1322+
"tags": [
1323+
"templates"
1324+
],
1325+
"summary": "Gets a list of all templates.",
1326+
"description": "Returns a JSON list of all templates.",
1327+
"operationId": "80405c8575b6a1c9db8619f187a6f91b",
1328+
"parameters": [
1329+
{
1330+
"name": "session",
1331+
"in": "header",
1332+
"description": "Session ID obtained from authentication",
1333+
"required": true,
1334+
"schema": {
1335+
"type": "string"
1336+
}
1337+
}
1338+
],
1339+
"responses": {
1340+
"200": {
1341+
"description": "Success",
1342+
"content": {
1343+
"application/json": {
1344+
"schema": {
1345+
"type": "array",
1346+
"items": {
1347+
"$ref": "#/components/schemas/Template"
1348+
}
1349+
}
1350+
}
1351+
}
1352+
},
1353+
"403": {
1354+
"description": "Failure",
1355+
"content": {
1356+
"application/json": {
1357+
"schema": {
1358+
"$ref": "#/components/schemas/UnauthorizedResponse"
1359+
}
1360+
}
1361+
}
1362+
}
1363+
}
1364+
}
13191365
}
13201366
},
13211367
"components": {
@@ -1557,6 +1603,47 @@
15571603
},
15581604
"type": "object"
15591605
},
1606+
"TemplateImage": {
1607+
"properties": {
1608+
"id": {
1609+
"type": "integer",
1610+
"example": 12
1611+
},
1612+
"template_id": {
1613+
"type": "integer",
1614+
"example": 1
1615+
},
1616+
"mimetype": {
1617+
"type": "string",
1618+
"example": "image/png",
1619+
"nullable": true
1620+
},
1621+
"filename": {
1622+
"type": "string",
1623+
"example": "header.png",
1624+
"nullable": true
1625+
},
1626+
"data": {
1627+
"description": "Base64-encoded image data",
1628+
"type": "string",
1629+
"format": "byte",
1630+
"example": "iVBORw0KGgoAAAANSUhEUgAAA...",
1631+
"nullable": true
1632+
},
1633+
"width": {
1634+
"type": "integer",
1635+
"example": 600,
1636+
"nullable": true
1637+
},
1638+
"height": {
1639+
"type": "integer",
1640+
"example": 200,
1641+
"nullable": true
1642+
}
1643+
},
1644+
"type": "object",
1645+
"nullable": true
1646+
},
15601647
"Template": {
15611648
"properties": {
15621649
"id": {
@@ -1579,6 +1666,13 @@
15791666
"order": {
15801667
"type": "integer",
15811668
"nullable": true
1669+
},
1670+
"images": {
1671+
"type": "array",
1672+
"items": {
1673+
"$ref": "#/components/schemas/TemplateImage"
1674+
},
1675+
"nullable": true
15821676
}
15831677
},
15841678
"type": "object",
@@ -1756,6 +1850,10 @@
17561850
{
17571851
"name": "subscriptions",
17581852
"description": "subscriptions"
1853+
},
1854+
{
1855+
"name": "templates",
1856+
"description": "templates"
17591857
}
17601858
]
17611859
}

0 commit comments

Comments
 (0)