Skip to content

[BUG] Missing Location header in POST /submodels/{submodelIdentifier}/submodel-elements/{idShortPath} #868

@geso02

Description

@geso02

Description

According to the AAS Part 2 HTTP/REST Binding specification (see OpenAPI definition, POST /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}),
a successful POST request that appends a new SubmodelElement must return:

  • 201 Created
  • a Location header pointing to the newly created resource.

The current reference implementation omits the Location header. For SubmodelElementList, this means the client cannot determine the index of the newly appended element without fetching the entire list again.

Expected behavior

When a new element is appended to a SubmodelElementList (POST), the response should include:


Location: /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}.[newIndex]

where newIndex is the numeric index of the newly appended element in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions