Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: GET /shells/{aasIdentifier}/submodels not implemented #335

Open
otto-ifak opened this issue Jul 19, 2024 · 3 comments
Open

[Bug]: GET /shells/{aasIdentifier}/submodels not implemented #335

otto-ifak opened this issue Jul 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@otto-ifak
Copy link

Contact Details

No response

Describe the bug

Invoking GET /shells/aHR0cDovL2N1c3RvbWVyLmNvbS9hYXMvOTE3NV83MDEzXzcwOTFfOTE2OA== returns

{
  "idShort": "ExampleMotor",
  "id": "http://customer.com/aas/9175_7013_7091_9168",
  "assetInformation": {
    "assetKind": "Instance",
    "globalAssetId": "http://customer.com/assets/KHBVZJSQKIY",
    "defaultThumbnail": {
      "path": "/MotorI40.JPG"
    }
  },
  "submodels": [
    {
      "type": "ModelReference",
      "keys": [
        {
          "type": "Submodel",
          "value": "http://i40.customer.com/type/1/1/F13E8576F6488342"
        }
      ]
    },
    {
      "type": "ModelReference",
      "keys": [
        {
          "type": "Submodel",
          "value": "http.//i40.customer.com/type/1/1/7A7104BDAB57E184"
        }
      ]
    },
    {
      "type": "ModelReference",
      "keys": [
        {
          "type": "Submodel",
          "value": "http://i40.customer.com/instance/1/1/AC69B1CB44F07935"
        }
      ]
    },
    {
      "type": "ModelReference",
      "keys": [
        {
          "type": "Submodel",
          "value": "http://i40.customer.com/type/1/1/1A7B62B529F19152"
        }
      ]
    }
  ],
  "modelType": "AssetAdministrationShell"
}

But chaining it to invoke GET /shells/aHR0cDovL2N1c3RvbWVyLmNvbS9hYXMvOTE3NV83MDEzXzcwOTFfOTE2OA==/submodels does not work.

To reproduce

I am using the following docker-compose.yml:

services:
  aasx-server:
    container_name: aasx-server
    image: docker.io/adminshellio/aasx-server-blazor-for-demo@sha256:f2010238503edc6c77ce37cd60f8b640431c768c6dd2a924f9c29f24c7e590dc # main
    restart: unless-stopped
    ports:
      - 5001:5001
    environment:
      - Kestrel__Endpoints__Http__Url=http://*:5001
    volumes:
      - ./aasxs:/usr/share/aasxs
    command: --no-security --data-path /usr/share/aasxs --external-blazor localhost

Screenshots

![DESCRIPTION](LINK.png)

Expected Behaviour

A clear and concise description of what you expected to happen.

Version

No response

Operating System

No response

Relevant log output

No response

@otto-ifak otto-ifak added the bug Something isn't working label Jul 19, 2024
@juileetikekar juileetikekar self-assigned this Jul 19, 2024
@juileetikekar juileetikekar added the Needs: Author Feedback Waiting for information/ feeadback from issue's author label Jul 19, 2024
@juileetikekar
Copy link
Contributor

Hi @otto-ifak,

I checked swagger-hub for API definitions and failed to find any API definition for "/shells/{aasIdentifier}/submodels". Could you please point me to the API definition for this request API?

@otto-ifak
Copy link
Author

There isn't any, I guess it is missing.

@juileetikekar juileetikekar removed the Needs: Author Feedback Waiting for information/ feeadback from issue's author label Jul 25, 2024
@juileetikekar
Copy link
Contributor

Related issue admin-shell-io/aas-test-engines#48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants