You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Difficulty: good-first-issue · Effort: S · Impact: route semantics
Problem Statement quantara/web_app/api/position.py declares mutations as @router.get(...).
GETs are cached and prefetched by browsers and CDN; replaying a
cached open-position URL through the browser executes a state change.
Expected Outcome
Both endpoints POST. Idempotency-Key header supported so retries are
safe.
Acceptance Criteria
OpenAPI spec shows POST.
Old GET URLs return 405.
Replaying POST with same Idempotency-Key returns same response with no double write.
Implementation Notes
Existing tests in tests/test_positions.py (which currently call client.get)
must be updated to POST.
quantara/web_app/api/position.pydeclares mutations as@router.get(...).GETs are cached and prefetched by browsers and CDN; replaying a
cached
open-positionURL through the browser executes a state change.Both endpoints POST.
Idempotency-Keyheader supported so retries aresafe.
Existing tests in
tests/test_positions.py(which currently callclient.get)must be updated to POST.
quantara/web_app/api/position.pyquantara/web_app/api/middleware.py::IdempotencyKeyMiddleware#5(CSP) for response uniformity.