meets the specification document IDTA-01002-3-0_SpecificationAssetAdministrationShell_Part2_API.pdf which says (page 114):
When retrieving AssetAdministrationShells (/shells, /lookup/shells), a query parameter “?assetids=” can be specified. Such assetId may be a globalAssetId or specificAssetId. The corresponding keyvalue-pair is first serialized to JSON and then base64url-encoded. The resulting encoded string is the value of “?assetids=”.
and
This encoding (serialize to JSON + base64url) is also used for SpecificAssetIds, i.e. for GetAllAssetAdministrationShellIdsByAssetLink (/lookup/shells). For the example “[{"key": "globalAssetId","value": "http://example.company/myAsset"},{"key": "myOwnInternalAssetId","value": "12345ABC"}]”, the resulting base64url-encoded value of the query parameter is “?assetIds=W3sia2V5IjogImdsb2JhbEFzc2V0SWQiLCJ2YWx1ZSI6ICJodHRwOi8vZXhhbXBsZS5jb21wYW55L215QXNzZXQifSx7ImtleSI6ICJteU93bkludGVybmFsQXNzZXRJZCIsInZhbHVlIjogIjEyMzQ1QUJDIn1d”. If several key-value-pairs are included, all must be part of the key-value-pairs on the server.
From what I can see the aasx-server expects a List<SpecificAssetId> where Value is base64url-encoded. If I understand the specification correctly, it should expect a List<string>, where each string is a key-value pair (or a SpecificAssetId) that is base64url-encoded.
Hi, I wanted to ask if the current implementation of
/lookup/shells
in https://github.com/eclipse-aaspe/aasx-server/blob/88dbef31fe83a7bc1a85f6ff68dbc5d94388d54f/src/IO.Swagger.Registry.Lib.V3/Controllers/AssetAdministrationShellRegistryAPIApi.cs#L532meets the specification document
IDTA-01002-3-0_SpecificationAssetAdministrationShell_Part2_API.pdf
which says (page 114):and
From what I can see the aasx-server expects a
List<SpecificAssetId>
whereValue
is base64url-encoded. If I understand the specification correctly, it should expect aList<string>
, where eachstring
is a key-value pair (or aSpecificAssetId
) that is base64url-encoded.For example
would be decoded to
and
Is this correct or am I missing something?