Feature/digital twin registry#846
Closed
FaheemBhatti wants to merge 21 commits into
Closed
Conversation
added 21 commits
August 28, 2025 17:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description of Changes
This pull request introduces the BaSyx Digital Twin Registry module.
The module combines the capabilities of
AASRegistryandAASDiscoveryinto a single component.Through the
/shell-descriptionendpoint, the registry dynamically creates both anAssetAdministrationShellDescriptorand anaasDiscoveryDocumentEntity.This integration ensures that asset shells are not only registered but also immediately discoverable, streamlining workflows that would otherwise require separate discovery and retrieval steps.
Related Issue
N/A
BaSyx Configuration for Testing
The Digital Twin Registry supports multiple profiles with different storage backends.
Testing requires configuring environment variables and selecting the appropriate profile.
Configuration Files
application.yml— Base configurationapplication-InMemory.yml— In-memory storage profileapplication-MongoDB.yml— MongoDB storage profileBase Configuration (
application.yml)SPRING_PROFILEInMemoryorMongoDB)LOGGING_LEVELServer
server.port=8081CORS
basyx.cors.allowed-methods=GET,POST,PATCH,DELETE,PUT,OPTIONS,HEADbasyx.cors.allowed-origins=*Management Endpoints
management.endpoints.web.exposure.include=health,metrics,mappingsSpringDoc/Swagger
springdoc.api-docs.enabled=truespringdoc.swagger-ui.enabled=truespringdoc.swagger-ui.path=/swagger-ui.htmlspringdoc.swagger-ui.csrf.enabled=falseInMemory Profile
basyx.backend=InMemory,registry.type=InMemory,registry.discovery.enabled=trueMongoDB Profile
AUTHENTICATION_DATABASEDATABASE_HOSTDATABASE_PORTDATABASE_USERNAMEDATABASE_PASSWORDbasyx.backend=MongoDB,registry.type=MongoDB,registry.discovery.enabled=truebasyx.aasdiscoveryservice.mongodb.collectionName=aasregistryAAS Files Used for Testing
No specific AAS files are included in this pull request.
For testing purposes, any valid AASDescriptor JSON files may be used to verify that:
/shell-descriptioncreates both the descriptor and discovery document.Additional Information
Module Structure:
digitaltwinregistry.ShellDescriptorsApiDelegateto integrate registry + discovery logic.Key Benefits:
Challenges Addressed: