Closed MDeLuise closed 3 months ago
Attention: Patch coverage is 0%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 16.75%. Comparing base (
9d86254
) to head (5962247
). Report is 4 commits behind head on develop.
Files | Patch % | Lines |
---|---|---|
...ua/app/api/resources/v1/resources/Credentials.java | 0.00% | 2 Missing :warning: |
Summary
This pull request introduces sorting capabilities to the '/{scopeId}/credentials' API endpoint by adding two new query parameters:
sortDir
andsortParam
.Details
This enhancement mirrors the sorting functionality already available in other API endpoints, such as
/devices
. By using these parameters, users can now sort the credentials information based on any specified field in either ascending or descending order.Example Usage
To sort the credentials information in ascending order by a specific field, the request would look like:
GET /{scopeId}/credentials?sortDir=ASCENDING&sortParam=<field_name>
This update enhances the flexibility and usability of the API by providing consistent sorting behavior across different endpoints.