-
Notifications
You must be signed in to change notification settings - Fork 67
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
ETag for discovery resource requests with batch interface #491
Conversation
🎉 Thank you for your code contribution! To guarantee the change/addition is conformant to the OCF Specification, we would like to ask you to execute OCF Conformance Testing of your change ☝️ when your work is ready to be reviewed. ℹ️ To verify your latest change (a1427cf), label this PR with |
841a162
to
ca433a5
Compare
16a8bee
to
9649776
Compare
90507fe
to
7f7d5e2
Compare
d865ca4
to
813c683
Compare
fe03708
to
c8bf990
Compare
c8bf990
to
fe47ee7
Compare
7e887a0
to
e3b4bce
Compare
e3b4bce
to
1e5745d
Compare
1e5745d
to
6d76808
Compare
When a GET request is made to the /oic/res resource with the batch interface, an array of contents representing discoverable and accessible resources is returned. This enhancement focuses on the calculation and handling of ETags in this scenario. ETags are utilized to track changes in resources. The ETag for each resource is updated whenever a change occurs. In the current IoT implementation the ETag value for resources continually increases, ensuring uniqueness among resources. In the context of the batch interface for the /oic/res resource the ETag value is calculated. The highest ETag value is selected from the resources included in the payload as well as the /oic/res resource itself as the ETag of the payload. This approach guarantees that the ETag used for the batch interface accurately represents the state of the included resources.
6d76808
to
9f333cb
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs 86.2% Coverage The version of Java (11.0.14.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Fix issues reported by SonarCloud and add tests.