With the /Cutters endpoint user can manage cutters from the database.
GET
/api/Cutters/List
Get a list of all cutters
Request Example
/api/Cutters/List
RESPONSE EXAMPLE
[
{
"Id": "string",
"Name": "string",
"Prefix": "string",
"CutterType": "string",
"FolderPath": "string"
},
{...}
]
GET
/api/Cutters/Get
Get a cutter
Request Example
/api/Cutters/Get?id=cutterId&name=cutterName
Use id parameter to get cutter by id or
Use name parameter to get cutter by name
RESPONSE EXAMPLE
If found, a cutter is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "string",
"Name": "string",
"Prefix": "string",
"CutterType": "string",
"FolderPath": "string"
}
POST
/api/Cutters/Create
Create a cutter
Model Request Example
{
"Name": "string",
"Prefix": "string",
"CutterType": "string",
"FolderPath": "string"
}
Response Example
If the operation is successful a cutter will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/Cutters/Update
Update a cutter
Request Example
/api/Cutters/Update?id=cutterId&name=cutterName
Use id parameter to identify the cutter to update by id or
Use name parameter to identify the cutter to update by name
Model Request Example
All fields are updated
{
"Name": "string",
"Prefix": "string",
"CutterType": "string",
"FolderPath": "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/Cutters/Delete
Delete a cutter
Request Example
/api/Cutters/Delete?id=cutterId&name=cutterName
Use id parameter to identify the cutter to update by id or
Use name parameter to identify the cutter 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