basyx-python-sdk
basyx-python-sdk copied to clipboard
server: Discovery endpoints status code mismatch
The current implementation of the Discovery API (server/app/interfaces/discovery.py) responds in two scenarios with status codes differing from the specification v3.1.1.
POST /lookup/shells/{aasIdentifier}: This endpoint should respond with201on success (currently200)DELETE /lookup/shells/{aasIdentifier}: This endpoint should respond with404if no links exist for the specified AAS (currently always204)
Although these are minor deviations, we should be consistent to the specification and therefore adapt the behavior.
Working on this issue
One more deviation on POST /lookup/shells/{aasIdentifier}: it merges the posted links into the existing ones instead of replacing them, see #669. I asked in #641 to include it.