Git Product home page Git Product logo

Comments (1)

MMuellerMitsubishi avatar MMuellerMitsubishi commented on July 30, 2024

We are having the same issue at the moment when using the AASX Server. We want to create an AAS via the API. And then upload a file to one of its submodel elements via the PUT /attachment/ endpoint. It works only with some work arounds

This flow doesn't work:

  • Create new AAS and Submodel for this AAS via the API
  • PUT /attachment to one of it File submodel elements -> Return 204, seems to be OK
  • GET /attachment to check if the file is really on the sever -> fails

This flow works:

  • Create new AAS and Submodel for this AAS via the API
  • Download the AASX file of this created AAS e.g. via Blazor UI or GET /packages/{packageID} endpoint
  • PUT /attachment to one of it File submodel elements -> Return 204
  • GET /attachment to check if the file is really on the sever -> Now the download works

But as described above the underlying AASX file in the server is not updated.

To update it we need to do another workaround.

  • Download the AASX file via Blazor UI or GET /packages/{packageID} endpoint
  • the downloaded AASX file contains the previously uploaded file (PUT /attachment)
  • Upload the AASX file to the server by using the PUT /packages/{packageID} endpoint

Now the underlying AASX file on the server is updated.

Working with attachments on AAS created via the API should be supported and the underlying AASX files should be updated also directly.

from server.

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.