With the /DesignStyles endpoint user can manage design styles from the database.
GET
/api/DesignStyles/List
Get a list of all design styles
Request Example
/api/DesignStyles/List
RESPONSE EXAMPLE
[
{
"Id": "string",
"Name": "string",
"Code": "string",
"Description": "string",
"Layout": "string",
"Spacing": 0,
"TextStyle": "string"
},
{...}
]
GET
/api/DesignStyles/Get
Get a design style
Request Example
/api/DesignStyles/Get?id=designStyleId&code=designStyleCode
Use id parameter to get design style by id or
Use code parameter to get design style by code
RESPONSE EXAMPLE
If found, a design style is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "string",
"Name": "string",
"Code": "string",
"Description": "string",
"Layout": "string",
"Spacing": 0,
"TextStyle": "string"
}
POST
/api/DesignStyles/Create
Create a design style
Model Request Example
{
"Name": "string",
"Code": "string",
"Description": "string",
"Layout": "string",
"Spacing": 0,
"TextStyle": "string"
}
Response Example
If the operation is successful a design style will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/DesignStyles/Update
Update a design style
Request Example
/api/DesignStyles/Update?id=designStyleId&code=designStyleCode
Use id parameter to identify the design style to update by id or
Use code parameter to identify the design style to update by code
Model Request Example
All fields are updated
{
"Name": "string",
"Code": "string",
"Description": "string",
"Layout": "string",
"Spacing": 0,
"TextStyle": "string"
}
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/DesignStyles/Delete
Delete a design style
Request Example
/api/DesignStyles/Delete?id=designStyleId&code=designStyleCode
Use id parameter to identify the design style to update by id or
Use code parameter to identify the design style to delete by code
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