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