AAS Discovery Service#
The AAS Discovery Service allows searching for Asset IDs of corresponding Asset Administration Shells, as well as finding Asset Administration Shell IDs based on given Asset IDs.
This is useful when working with the Hierachical Structures enabling Bills of Material Submodel. You will be able to easily find and navigate to the Asset Administration Shells of the assets included in this Submodel.
Features#
Configuration#
Server Configuration
#
This section configures the server port and application name for the AAS Environment.
server.port=8081
spring.application.name=AAS Discovery
Backend Configuration
#
Configure the backend storage. By default, it uses InMemory. Optionally, you can configure MongoDB.
InMemory
#
basyx.backend = InMemory
MongoDB
#
basyx.backend = MongoDB
spring.data.mongodb.host=mongo
spring.data.mongodb.host=127.0.0.1
spring.data.mongodb.port=27017
spring.data.mongodb.database=aasdiscovery
spring.data.mongodb.authentication-database=admin
spring.data.mongodb.username=mongoAdmin
spring.data.mongodb.password=mongoPassword
CORS Configuration
#
Configure CORS settings to specify allowed origins and methods.
Warning
To use the component with the BaSyx Web GUI this configuration is required.
To do this, you need to add the URL of the Web GUI to the allowed origins.
basyx.cors.allowed-origins=http://localhost:3000, http://localhost:4000
basyx.cors.allowed-methods=GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
Configure Favicon#
Note
A favicon is a small 16×16 or 32×32 pixel icon, symbol or logo used by web browsers to identify a website in a recognizable way
To configure the favicon, mount your favicon to the static directory of the component using Docker:
docker run --name=aas-discovery-service -p:8081:8081 -v C:/path/to/favicon.ico:/application/static/favicon.ico eclipsebasyx/aas-discovery:2.0.0-SNAPSHOT
Docker#
Eclipse BaSyx provides the Aas Discovery Service as off-the-shelf component:
docker run –name=aas-discovery-service -p:8081:8081 -v C:/tmp/application.properties:/application/application.properties eclipsebasyx/aas-discovery:2.0.0-SNAPSHOT
Note
In this example, configuration files are located in C:/tmp
Warning
The binding of volume C:/tmp/application.properties to /application/application.properties is tested using Windows Powershell. Other terminals might run into an error.
Warning
When running this component inside Docker, do not modify the internal port configuration.
Changing the port setting may prevent the service from being accessible from outside the container.
Virtual Machine#
Eclipse BaSyx provides the AAS Discovery Service as a virtual machine image for Oracle VirtualBox and VMware Workstation Player.
The image can be found here. How to use it is described here.
Swagger UI#
In the Swagger UI, you can find the API documentation for the AAS Discovery Service.
You can also execute all the API calls directly from the Swagger UI.
The API endpoint documentation is available at:
http://{host}:{port}/v3/api-docs
The Aggregated Swagger UI for the endpoints is available at:
http://{host}:{port}/swagger-ui/index.html
It supports DotAAS Part 1 V3 and all HTTP/REST endpoints defined in DotAAS Part 2 V3 - AasDiscovery Service. In addition, it supports InMemory as well as MongoDB backends.
For a configuration example, see application.properties
Right now, no additional input parameters modifying the output (e.g., cursor, serializationModifier) are supported.