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.