eclipse-aaspe / server

C# based server for AASX packages
Other
72 stars 52 forks source link

BlazerUI doesn't update when adding a submodel to an existing AAS #194

Closed MMuellerMitsubishi closed 1 year ago

MMuellerMitsubishi commented 1 year ago

It seems that the Blazer UI is not updating when adding a new submodel to an existing AAS via the API

First, I'm crating a new submodel by executing a POST on "/submodels". This works without an error. Then I add the submodel reference to the exsting AAS by executing a POST on "/shells/{aasIdentifier}/submodel-refs". Also this works without an error.

I confirm by a GET on "/shells/{aasIdentifier}" and "/submodels/{submodelIdentifier" that the submodel exists on the server and that the Submodel References is stored at the AAS. Both of them look good.

However, when unfolding the AAS in the BlazorUI, the submodel reference is not displayed.

Is there a mistake on my side when creating the submodel?

Result of the GET /submodel/{submodelIdentifier} image

Result of the GET /shells/{aasIdentifier} image

juileetikekar commented 1 year ago

Hi @MMuellerMitsubishi,

If you are using the latest code, then please use the updated API to create a submodel (i.e., POST /submodels) with the query parameter for aasIdentifier (Shell Id of the AAS to which the submodel needs to be added.) With this API, it is not needed to execute a POST on "/shells/{aasIdentifier}/submodel-refs".

image

MMuellerMitsubishi commented 1 year ago

@juileetikekar Thanks. It work's with that function