Coder Social home page Coder Social logo

Comments (6)

vChavezB avatar vChavezB commented on September 17, 2024

I have also tried sending according to my example the key ["assetAdministrationShells"][0] from the json dictionary and I get the following error:

'{"success":false,
"isException":true,
"messages":[{"messageType":6,
"code":"400",
"text":"MalformedRequestException: Given newValue map has not the correct ModelType"}]}'

from basyx-python-sdk.

jkhsjdhjs avatar jkhsjdhjs commented on September 17, 2024

The API you linked is the registry API, used to register AssetAdministrationShells and other objects by their identifier and endpoint via Descriptor objects. This is not equivalent to the usual AssetAdministrationShell / Submodel objects as the descriptor objects don't contain all the data of an AssetAdministrationShell or Submodel object.
Descriptor objects are currently not supported by the basyx-python-sdk, they'll maybe be implemented when the HTTP API component is implemented.

If you want to store the entire AssetAdministrationShell or Submodel object via an HTTP API you'll need an application that implements https://app.swaggerhub.com/apis/BaSyx/BaSyx_Registry_API/v1. I'm not familiar with the software currently available for that, so I can't recommend you any.

BTW: The two different interfaces (AAS and Registry) are specified in this document in Chapter 4 and 5 respectively: https://www.plattform-i40.de/IP/Redaktion/EN/Downloads/Publikation/Details_of_the_Asset_Administration_Shell_Part2_V1.html

from basyx-python-sdk.

vChavezB avatar vChavezB commented on September 17, 2024

Thanks for info. I will check the spec. part 2. My use case is that I want to dynamically add assets to the server and remove them if they are not online anymore.

If you want to store the entire AssetAdministrationShell or Submodel object via an HTTP API you'll need an application that implements https://app.swaggerhub.com/apis/BaSyx/BaSyx_Registry_API/v1.

So does this mean that the implementation of the Basyx Registry does not have this option at the moment ... or would that mean I have to implement (for example) the API PutAssetAdministrationShell (section 4.2.3) and use the swaggerhub API from basyx as backend. Sorry if I am asking something redundant but I am still getting to know the spec.

from basyx-python-sdk.

jkhsjdhjs avatar jkhsjdhjs commented on September 17, 2024

If you want to store the entire AssetAdministrationShell or Submodel object via an HTTP API you'll need an application that implements https://app.swaggerhub.com/apis/BaSyx/BaSyx_Registry_API/v1.

So does this mean that the implementation of the Basyx Registry does not have this option at the moment ... or would that mean I have to implement (for example) the API PutAssetAdministrationShell (section 4.2.3) and use the swaggerhub API from basyx as backend. Sorry if I am asking something redundant but I am still getting to know the spec.

Ah sorry, I linked the wrong spec. I meant to link: https://app.swaggerhub.com/apis/BaSyx/basyx_asset_administration_shell_repository_http_rest_api/v1

from basyx-python-sdk.

chrweiss avatar chrweiss commented on September 17, 2024

Ah sorry, I linked the wrong spec. I meant to link: https://app.swaggerhub.com/apis/BaSyx/basyx_asset_administration_shell_repository_http_rest_api/v1

Are there any plans to implement this REST spec? Or would I have to implement it on my own as the author of this issue currently is?

from basyx-python-sdk.

jkhsjdhjs avatar jkhsjdhjs commented on September 17, 2024

Ah sorry, I linked the wrong spec. I meant to link: https://app.swaggerhub.com/apis/BaSyx/basyx_asset_administration_shell_repository_http_rest_api/v1

Are there any plans to implement this REST spec? Or would I have to implement it on my own as the author of this issue currently is?

There are no plans to implement the linked API, as it is specific to the BaSyx project. Once #18 is finalized though, we plan to implement https://app.swaggerhub.com/apis/Plattform_i40/Entire-API-Collection/V1.0RC03 in an HTTP server and an HTTP client.

from basyx-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.