basyx-python-sdk icon indicating copy to clipboard operation
basyx-python-sdk copied to clipboard

server: Discovery endpoints status code mismatch

Open hpoeche opened this issue 2 months ago • 2 comments

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.

  1. POST /lookup/shells/{aasIdentifier}: This endpoint should respond with 201 on success (currently 200)
  2. DELETE /lookup/shells/{aasIdentifier}: This endpoint should respond with 404 if no links exist for the specified AAS (currently always 204)

Although these are minor deviations, we should be consistent to the specification and therefore adapt the behavior.

hpoeche avatar Sep 07 '26 08:09 hpoeche

Working on this issue

JAB1305 avatar Sep 23 '26 13:09 JAB1305

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.

zrgt avatar Oct 22 '26 13:10 zrgt