eclipse-basyx / basyx-java-server-sdk

MIT License
59 stars 46 forks source link

[BUG] Posting A SubmodelElement On SubmodelElementRepository Does Not Return A Response Body #398

Open geso02 opened 2 months ago

geso02 commented 2 months ago

Describe the bug According to the openapi description, posting a submodel element should return the posted object. On backend side, the 'body'-argument is missing. Direct posts to '/submodels/{submodelIdentifier}/submodel-elements' and based on a subpath '/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}' do not return the posted element.

To Reproduce

A look at the source code makes it obvious. The body argument is missing.

Expected behavior The posted object should be returned, as described in the openAPI definition

BaSyx (please complete the following information):

Used Asset Administration files (.aasx/.json/.xml)

{
  "modelType": "Submodel",
  "kind": "Instance",
  "id": "http://sm.org/sm/1",
  "idShort": "_1_",
}
{
"modelType": "Property",
"value": "12",
"valueType": "xs:integer",
"idShort": "Prop1"
}

System (please complete the following information):