With the /TemplateOverride endpoint user can manage TemplateOverride from the database.
GET
/api/TemplateOverride/List
Get a list of all TemplateOverride
Request Example
/api/TemplateOverride/List
RESPONSE EXAMPLE
[
{
"Id": "string",
"TemplateId": "string",
"TemplateIdOverride": "string",
"MinCharacter": Number,
"MaxCharacter": Number,
"OrderType": "string",
"ProductId": "string",
"FontName": "string",
"Template": {...},
"TemplateForOverride": {...},
"Product": {...}
}
]
GET
/api/TemplateOverride/Get
Get a TemplateOverride
Request Example
/api/TemplateOverride/Get?id=TemplateOverrideId
RESPONSE EXAMPLE
If found, a TemplateOverride is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "348605b1-fc38-4923-8bd2-dd1808b482b6",
"TemplateId": "string",
"TemplateIdOverride": "string",
"MinCharacter": Number,
"MaxCharacter": Number,
"OrderType": "string",
"ProductId": "string",
"FontName": "string",
"Template": {...},
"TemplateForOverride": {...},
"Product": {...}
}
POST
/api/TemplateOverride/Create
Create a TemplateOverride
Model Request Example
{
"TemplateId": "string",
"TemplateIdOverride": "string",
"MinCharacter": Number,
"MaxCharacter": Number,
"OrderType": "string",
"ProductId": "string", - (Optional)
"FontName": "string" - (Optional)
}
Response Example
If the operation is successful a TemplateOverride will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/TemplateOverride/Update
Update a TemplateOverride
Request Example
/api/TemplateOverride/Update?id=TemplateOverrideId
Model Request Example
{
"TemplateId": "string",
"TemplateIdOverride": "string",
"MinCharacter": Number,
"MaxCharacter": Number,
"OrderType": "string",
"ProductId": "string", - (Optional)
"FontName": "string" - (Optional)
}
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409
DELETE
/api/TemplateOverride/Delete
Delete a TemplateOverride
Request Example
/api/TemplateOverride/Delete?id=TemplateOverrideId
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409