Skip to content

feat(api): complete versioning coverage, OpenAPI docs sync, WebSocket… - #951

Open
deborahamoni0-prog wants to merge 1 commit into
AtomicIP:mainfrom
deborahamoni0-prog:feat/api-versioning-docs-ws-loadtest-859-860-861-862
Open

feat(api): complete versioning coverage, OpenAPI docs sync, WebSocket…#951
deborahamoni0-prog wants to merge 1 commit into
AtomicIP:mainfrom
deborahamoni0-prog:feat/api-versioning-docs-ws-loadtest-859-860-861-862

Conversation

@deborahamoni0-prog

Copy link
Copy Markdown
Contributor

Completed Issues & Summary

  1. Add versioning.rs coverage 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.
  2. Add 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.
  3. Add websocket push for swap state changes #861 Add websocket push for swap state changes
    • 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.
  4. Add load-testing scenarios for the batch endpoints #862 Add load-testing scenarios for the batch endpoints
    • 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

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant