File tree 1 file changed +98
-0
lines changed
1 file changed +98
-0
lines changed Original file line number Diff line number Diff line change 1316
1316
}
1317
1317
}
1318
1318
}
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
+ }
1319
1365
}
1320
1366
},
1321
1367
"components" : {
1557
1603
},
1558
1604
"type" : " object"
1559
1605
},
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
+ },
1560
1647
"Template" : {
1561
1648
"properties" : {
1562
1649
"id" : {
1579
1666
"order" : {
1580
1667
"type" : " integer" ,
1581
1668
"nullable" : true
1669
+ },
1670
+ "images" : {
1671
+ "type" : " array" ,
1672
+ "items" : {
1673
+ "$ref" : " #/components/schemas/TemplateImage"
1674
+ },
1675
+ "nullable" : true
1582
1676
}
1583
1677
},
1584
1678
"type" : " object" ,
1756
1850
{
1757
1851
"name" : " subscriptions" ,
1758
1852
"description" : " subscriptions"
1853
+ },
1854
+ {
1855
+ "name" : " templates" ,
1856
+ "description" : " templates"
1759
1857
}
1760
1858
]
1761
1859
}
You can’t perform that action at this time.
0 commit comments