Skip to content

server: Discovery endpoints status code mismatch #625

Description

@hpoeche

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions