feat(api): complete versioning coverage, OpenAPI docs sync, WebSocket… - #951
Open
deborahamoni0-prog wants to merge 1 commit into
Conversation
… push, and batch load testing closes AtomicIP#859 closes AtomicIP#860 closes AtomicIP#861 closes AtomicIP#862
|
@deborahamoni0-prog Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Completed Issues & Summary
versioning.rscoverage for the newly-completed handlers #859 Add versioning.rs coverage for the newly-completed handlers• Audited route registrations to ensure explicit /v1/... prefix attachment for all 13 handlers.
• Added version negotiation middleware tests asserting that unversioned routes return 404 Not Found and unsupported versions
return 406 Not Acceptable with structured error details.
• Documented the current API version (1.0.0), supported versions, and deprecation policy in api-reference.md.
docs.rs-generated OpenAPI coverage for all wired endpoints #860 Add docs.rs-generated OpenAPI coverage for all wired endpoints• Configured main.rs:56-117 and schema definitions covering all wired endpoints.
• Reconciled OpenAPI schemas with api-reference.md.
• Added CI integration tests in integration_tests.rs:470-511 to fail if endpoint schemas or documentation drift.
• Added subscribe_swap_status channel in websocket.rs:171-274 supporting both global and per-swap_id filtering.
• Bridged contract events from events.rs (SwapInitiated, SwapAccepted, SwapCompleted) into WebSocket push notifications
(swap_status_changed).
• Added tests in websocket.rs:276-358 asserting timely delivery of pushed events to multiple subscribers within bounded time.
• Added load-testing scenarios in load_testing.rs:212-323 for near max-size batch requests (batch_initiate_swap with 5, 25, and
100 items).
• Measured p50, p95, and p99 latencies, comparing single-item request overhead vs batch execution amortized throughput.
• Documented load-testing benchmark findings in architecture.md.
closes #859
closes #860
closes #861
closes #862