[Bug]: POST shell-descriptors
returns HTTP 201 on duplicates instead of 409
#351
Labels
bug
Something isn't working
Contact Details
No response
Describe the bug
When adding a Shell-Descriptor to the AssetAdministrationShellRegistry API's
shell-descriptors
endpoint, that should raise a conflict. That's currently not the case, the shell-descriptor is overwritten.To reproduce
POST /shell-descriptors
with payloadidShort
with"idShort": "overwritten"
.Screenshots
![DESCRIPTION](LINK.png)
Expected Behaviour
I'm expecting a conflict here but I simply get the permission to overwrite the data that's already there.
409 Conflict is the specified behavior in the normative openapi files [1].
[1] https://app.swaggerhub.com/apis/Plattform_i40/AssetAdministrationShellRegistryServiceSpecification/V3.0_SSP-001#/Asset%20Administration%20Shell%20Registry%20API/PostAssetAdministrationShellDescriptor
Version
No response
Operating System
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: