With the /ProductCategoryType endpoint user can manage the database template categories.
GET
/api/ProductCategoryType/List
Get all template categories.
Request Example
/api/ProductCategoryType/List
RESPONSE EXAMPLE
[
{
"Id": "2d8c7b79-daa3-4e19-b02d-33be11a58301",
"Name": "aarr",
"ImageFile": "1_0.png"
},
{...}
]
GET
/api/ProductCategoryType/Get
Get a ProductCategoryType
Request Example
/api/ProductCategoryType/Get?id=ProductCategoryTypeId&name=ProductCategoryTypeName
Use id parameter to get ProductCategoryType by id or
Use name parameter to get ProductCategoryType by name
RESPONSE EXAMPLE
If found, a ProductCategoryType is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "2d8c7b79-daa3-4e19-b02d-33be11a58301",
"Name": "aarr",
"ImageFile": "1_0.png"
}
POST
/api/ProductCategoryType/Create
Create a ProductCategoryType
Model Request Example
Request Content will be of type multipart/form-data with following keys
file - (Required) The design file
ProductCategoryTypeName -(Required) The product category type name
Response Example
If the operation is successful a ProductCategoryType will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/ProductCategoryType/Update
Update a ProductCategoryType
Request Example
/api/ProductCategoryType/Update?id=ProductCategoryTypeId&name=ProductCategoryTypeName
Use id parameter to identify the ProductCategoryType to update by id or
Use name parameter to identify the ProductCategoryType to update by name
Model Request Example
Request Content will be of type multipart/form-data with following keys
file - (Required) The design file
ProductCategoryTypeName -(Required) The product category type name
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/ProductCategoryType/Delete
Delete a ProductCategoryType
Request Example
/api/ProductCategoryType/Delete?id=ProductCategoryTypeId&name=ProductCategoryTypeName
Use id parameter to identify the ProductCategoryType to update by id or
Use name parameter to identify the ProductCategoryType to delete by name
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