With the /needles endpoint user can manage needles from the database.
GET
/api/Needles/List
Get a list of all needles
Request Example
/api/needles/List
Response Example
[
{
"Id": "string"
"NeedleNumber": Number,
"ColourId": "string",
"LastModifiedDate": "string",
"Colour": {
"Id": "string",
"Name": "string",
"Code": "string",
"Manufacturer": "string",
...
}
},
{...}
]
PUT
/api/needles/Update
Update a cutter
Request Example
/api/needles/Update
Model Request Example
All fields are updated
{
"Needles" : [
{
"Needle" : Number,
"ColourId" : "string"
},
{
"Needle" : Number,
"ColourId" : "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