admin-shell-io / questions-and-answers

This repository aims for providing answers to often asked questions in the context of the Asset Administration Shell.
https://admin-shell-io.github.io/questions-and-answers/
Creative Commons Attribution 4.0 International
24 stars 6 forks source link

Which is the official demo API? / Quality of examples #114

Closed o-st closed 1 month ago

o-st commented 1 month ago

I am currently looking at two servers hosting AAS APIs:

  1. v3.admin-shell-io.com
  2. admin-shell-io.com/5001/

It could be me misunderstanding the AAS specification, but:

Since both sources contain examples which do not adhere to the standard, I ask myself where I could find an up-to-date demo API following the standard.

StenGruener commented 1 month ago

This is tricky, the first one is probably just some bug of contained data where the backend is not checking consistency.

Try those:

Last two should be basyx while first one aasx-server

o-st commented 1 month ago

Hi @StenGruener!

Thank you very much for your answer! Looking at the WAGO repository, I see, that it supports the GetAllShells endpoint from the Shell Repository service.

What is strange is, that - in order to get a submodel for a shell - you cannot use the GetSubmodel (/shells/:aasIdBase64/submodels/:submodelIdBase64) endpoint from the Shell Repository API. Instead you have to use the GetSubmodelById (/submodels/:submodelIdBase64) endpoint from the Submodel Repository API.

I am also not able to retrieve the self-description endpoint (GetDescription) at /description for the WAGO server.

What is the reason for this?

Thank you again for your time!

StenGruener commented 1 month ago

hi,

for the second questions I cannot talk for WAGO, since i am not associated with them and everything would be a wild guess. I'd propose you try out some basyx demos to see if its the case with the SDK.

The first one is generic to AAS resolution process, see aas spec part 2: image

The reason is, that submodels are deployment units and can be scattered across different hosting locations. Therefore the AAS just knows IDs of submodels contained into it, but they must not be on the same REST endpoint.

o-st commented 1 month ago

I appreciate your effort. I guess I will have to read up on the spec a bit. Thanks for hinting me. 👍