File tree Expand file tree Collapse file tree 1 file changed +98
-0
lines changed Expand file tree Collapse file tree 1 file changed +98
-0
lines changed Original file line number Diff line number Diff line change 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" : {
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" : {
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" ,
17561850 {
17571851 "name" : " subscriptions" ,
17581852 "description" : " subscriptions"
1853+ },
1854+ {
1855+ "name" : " templates" ,
1856+ "description" : " templates"
17591857 }
17601858 ]
17611859}
You can’t perform that action at this time.
0 commit comments