Extend free text endpoint for serialnumbers
As we want to use the serial numbers text endpoint to check if a serial number is alreay used, we would need a nice mechanism to ignore a certain existing entry.
The two scenarios are the following:
- I create a new device: Then the endpoint as it is, is ok to check if the serial number is already in the system
- I edit a device: Here we would have the existing entry in the list - but it is unknown if it comes from the entry we edit, or if there is another device with the same serial number.
Accceptance criteria:
-
a new parameter where we can give ids for the device serial number endpoint -
those devices should not be included to create the serial numbers set of the endpoint -
same for platform serial numbers -
include the parameter in the openapi -
Bonus: think about optional restrictions of the endpoint for a certain shortname, manufacturer, etc.
Edited by Nils Brinckmann