Templates
Get All Templates [GET]
get
/template
Request
GET
/template
Parameters
pageintegeroptional
Type: query
Description:
Default Value: 1
sizeintegeroptional
Type: query
Description:
Default Value: 10
searchstringoptional
Type: query
Description:
Parameters
GET
/template?page=1&size=10&search=string
Response
Code | Description | Type |
---|---|---|
200 | object | |
Object Properties countinteger dataarray of object Object Properties createdAtinteger idstring namestring updatedAtinteger | ||
400 | object | |
Object Properties dataobject Object Properties Empty Object errorstring messagestring | ||
401 | object | |
Object Properties dataobject Object Properties Empty Object errorstring messagestring | ||
500 | object | |
Object Properties dataobject Object Properties Empty Object errorstring messagestring |
Response
200
400
401
500
Create Template [POST]
post
/template
Request
POST
/template
Request Body
Template data
htmlstringrequired
idstringrequired
namestringrequired
Request Body
{
"html": "string",
"id": "string",
"name": "string"
}
Response
Code | Description | Type |
---|---|---|
200 | boolean | |
400 | object | |
Object Properties dataobject Object Properties Empty Object errorstring messagestring | ||
401 | object | |
Object Properties dataobject Object Properties Empty Object errorstring messagestring | ||
500 | object | |
Object Properties dataobject Object Properties Empty Object errorstring messagestring |
Response
200
400
401
500