Comments (1)
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)
- Blazor dowload shows error HOT 4
- Clean up of temp folder HOT 1
- duplicate argument HOT 2
- InternalServerError GET /submodels/{id}/submodel-elements/{idshortpath}/attachment HOT 2
- [Not a Bug]: Server V3 down HOT 1
- [Bug]: Same submodel IDs from different AAS HOT 2
- Mqtt login information HOT 1
- [Bug]: Can't update submodel with database support enabled although returned status is OK HOT 1
- [Bug]: Cannot update non-string properties via REST API HOT 4
- [Bug]: Updating non-string submodel properties with string values changes their value type using the REST API
- [Bug]: Using the Patch API for updating values also changes the idshort of properties
- Clarification GET /lookup/shells value for assetIds
- [Bug]: Creating a Shell via POST:/shells is not persistent HOT 1
- [Bug]: Adding Thumbnail to AssetInformation via REST Request doesn't work if Shell was created via REST API HOT 1
- [Bug]: Port already in use doesn't stop server from starting
- [Bug]: Unable to Access API Endpoints as Described in README HOT 1
- 💡 [REQUEST] - Automatically opening an AAS and a submodel within AAS in the visualization
- OPC UA Methods Implementation
- Hosting Files Created via Python & AASXPE (24_2_27) using Server Blazor 2023_09_13 not working HOT 2
- Unreadable aasx files on v3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.