Comments (6)
Hi @vChavezB ,
Thank you for your question.
In current AasxServer/master, there are two kinds of APIs: one with Grapevine (mentioned in README) and one with Asp.Net core (new). The status of these APIs w.r.t. your question is as below:
Question: Is it possible to upload a package to AasxServer via API?
Status:
-
APIs with Asp.Net core: Yes
API to upload new package: PostAASXPackage
API to update existing (already loaded) package: PutAASXPackageById -
APIs with Grapevine: Partially
API to upload new package: NOT Possible
API to update existing (already loaded) package: Possible, Api (HttpMethod = HttpMethod.PUT, PathInfo = @"^/server/getaasx/(\d+)(/|)$")
To connect to new APIs with Asp.Net core:
The new REST endpoint is : http:// <Host_Name> :5001/
Swagger documentation for these APIs can be found at : http://<Host_Name>:5001/swagger/index.html
Package explorer can be connected to Aasx-Server by: File -> AASX File Repository -> Connect HTTP/REST Repository and
appending "?asp.net" to the new REST endoint as shown in the screenshot.
The documentation of these new APIs will be released soon.
from server.
Dear @juileetikekar thanks for the insightful answer. This definitely helps a lot. I will test the aforementioned APIs.
from server.
Is this feature with ASP Net core enabled in the latest release binaries or do I have to use the source files ?
I can access the endpoint
http://localhost:51310/server/listaas
but cannot connect to the server with package explorer ?asp.net URL at the end.
from server.
Hi @vChavezB ,
The binaries have been now updated and the latest binaries now consist of the features mentioned in my earlier comment.
from server.
Thanks for the update. I tried running
AasxServerCore --rest --no-security -p 5001
but I could not access the swagger API through
http://localhost:5001/swagger/index.html
Did I miss something on the command arguments?
Thanks in advanced
from server.
Update on this issue, it was not mentioned which variant has the port 5001 opened. After checking the source code I found that the BLAZOR variant should be used for the aforementioned new API
from server.
Related Issues (20)
- [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
- [Bug]: Query Parameter (IdShort and Cursor) cannot be empty HOT 2
- [Bug]: Wrong API Endpoints HOT 2
- AASX Blazor Server not able to connect to Package Explorer HOT 5
- Trouble using API with docker-compose version HOT 5
- [Bug]: AASX Server cannot interpret Serialization Modifier
- [Bug]: Invoking /shells?idShort=ExampleMotor returns error 500 HOT 4
- [Bug]: Pagination: negative limits are accepted
- [Bug]: GET /shells/$reference returns 500 HOT 1
- [Bug]: GET /shells/{aasIdentifier}/submodels not implemented HOT 3
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.