Hi committers and contributors,
When discussing the implementation of the “add”-operation for device credentials yesterday we found the following point:
-
The API definition currently states that this operation is for devices that were already registered with Hono (by means of the registration API)
Quotation : “Clients may use this command to initially add credentials for a device that has already been registered with Hono.”
-
If credentials are added for not (yet) registered devices, an error code 412 should be returned, indicating that the device is not known to Hono
While this seems to be straightforward, it has the implication that any implementation of the credentials API has to first check if the device of an “add” operation is registered
already.
I want to change this point to be optional, so implementations of the credentials API may skip this check (and in this case allow registration of credentials for devices that
may be registered later).
WDYT?
Note that the “add” operation is optional itself, but IF it is implemented, the API clearly defines the semantics. So the full definition is important in the API definition.
Mit freundlichen Grüßen / Best regards
Karsten Frank
Senior Software Developer
Bosch Software Innovations GmbH
Schöneberger Ufer 89-91
10785 Berlin
GERMANY
www.bosch-si.com
Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B;
Executives: Dr.-Ing. Rainer Kallenbach, Michael Hahn