This fix corrects the handling of IdShortPath in various APIs with respect to specifications. With this PR, it is possible to access the elements of SubmodelElementList based on indices. The PR also provides a refactoring of GetSubmodelELementByPath method and gets rid of recurssion.
Fixes #201
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
The changes have been manually tested. The tests included APIs for Get/Put/Post/Delete/Patch a submodel element with nesting. The blazor UI tests were also carried out, w.r.t. URLs of the submodel elements update.
Screenshots (if appropriate):
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
Description
This fix corrects the handling of IdShortPath in various APIs with respect to specifications. With this PR, it is possible to access the elements of SubmodelElementList based on indices. The PR also provides a refactoring of GetSubmodelELementByPath method and gets rid of recurssion.
Fixes #201
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The changes have been manually tested. The tests included APIs for Get/Put/Post/Delete/Patch a submodel element with nesting. The blazor UI tests were also carried out, w.r.t. URLs of the submodel elements update.
Screenshots (if appropriate):
Checklist: