-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort order parameter for data messages request #2981
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2981 +/- ##
=============================================
+ Coverage 56.90% 57.04% +0.14%
- Complexity 2596 2602 +6
=============================================
Files 1062 1062
Lines 22978 22978
Branches 2043 2043
=============================================
+ Hits 13075 13108 +33
+ Misses 8942 8909 -33
Partials 961 961 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the submission @xshiart!
I would kindly ask for a few changes, and also it would be great if you could update the OpenAPI specification under rest-api/resources/src/main/resources/openapi
.
I'll gladly merge this as soon as it's ready!
...i/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/DataMessages.java
Outdated
Show resolved
Hide resolved
...sources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/DataMessagesJson.java
Outdated
Show resolved
Hide resolved
rest-api/resources/src/main/resources/openapi/dataMessage/dataMessage-scopeId.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one last change! Sorry for not catching it earlier!
rest-api/resources/src/main/resources/openapi/dataMessage/dataMessage-scopeId.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Artem Shilin <xshiart@protonmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the submission!
All looks good so I'll proceed to merge this. |
The new parameter for /data/messages endpoint to control the sorting order of returned results.
This change improves REST API usage in case of iterating over messages.