Skip to content

Method Inconsistency in Basic Discovery #550

@Martin187187

Description

@Martin187187

What happens?

Incorrect API semantics

The endpoint
POST /lookup/shells/{aasIdentifier} in the BasicDiscovery specification is described as "replace or create".


Why is this wrong?

Replace semantics are typically implemented with PUT, not POST.
Using POST for replace operations contradicts the design used in the rest of the API.


How should it be fixed?

A possible solution would be:

  1. Remove the "replace" behavior from the POST endpoint

POST /lookup/shells/{aasIdentifier} should only perform create operations.

  1. Introduce a dedicated PUT endpoint for replace

Replace operations should follow the existing API pattern and be implemented using a PUT method, e.g.:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions