basyx-python-sdk
basyx-python-sdk copied to clipboard
Implement missing `PATCH` endpoints for Submodels and SubmodelElements
This issue regroups the already reported missing endpoints in #528, #529, #530 and #531 by underlying mechanism rather than endpoint path. Part of #439.
Core issue here is the missing partial update (PATCH) of existing Submodels and SubmodelElements,
both in the normal and in the $metadata representation.
Affected endpoints:
PATCH /submodels/{submodelIdentifier}(#528)PATCH /submodels/{submodelIdentifier}/$metadata(#529)PATCH /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}(#530)PATCH /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata(#531)
Scope:
- Define the merge semantics before implementing: which attributes are replaced, how child elements are handled, and which attributes count as metadata
- One shared update mechanism used by all four routes
- Support the
levelquery parameter (deep/core) where the specification defines it (all routes exceptPATCH .../{idShortPath}/$metadata)
Endpoints available via the AAS superpath (/shells/{aasIdentifier}/submodels/...) are covered
automatically through the existing redirect.
Working on this now