✨ [REST-API] Add support to query operations by status
in GET /{scopeId}/devices/{deviceId}/operations
#4121
+77
−10
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.
Description
This PR implements the capability to search operations by their status using the
GET /{scopeId}/devices/{deviceId}/operations
endpoint.Changes Made
DeviceManagementOperations
query method:query
method has been deprecated. It previously required the@PathParam("deviceId") EntityId deviceId
parameter.query1
method that conforms to the parameters accepted and usage patterns of other query methods. ThedeviceId
parameter was removed, improving consistency across endpoints._query
(deprecated) endpoint will be removed in a future release._query1
endpoint will eventually be deprecated in favor of a new_query
endpoint with the same behavior but a "correct" name._query1
will be deleted in a subsequent release, following a smooth deprecation process.Impact
These changes are backward-compatible but introduce a new method for querying operations. Users relying on the existing
query
method should migrate to the newquery1
method or prepare for the upcoming changes.Notes
query1
is provisional and can be adjusted based on feedback. It was chosen to maintain backward compatibility while moving towards a cleaner design.