Skip to content

Add ETag support for GET /transactions and GET /payment-requests - #1010

Open
joel-metal wants to merge 1 commit into
kellymusk:masterfrom
joel-metal:feat/904-etag-support
Open

Add ETag support for GET /transactions and GET /payment-requests#1010
joel-metal wants to merge 1 commit into
kellymusk:masterfrom
joel-metal:feat/904-etag-support

Conversation

@joel-metal

Copy link
Copy Markdown
Contributor

Summary

  • Added a small etag::conditional_json helper that serializes a response, hashes it (SHA-256) to produce an ETag, and compares against the request's If-None-Match header.
  • GET /transactions and GET /payment-requests now return that ETag header on 200, and respond 304 Not Modified with an empty body when the client's If-None-Match already matches — cutting bandwidth for polling frontends.
  • Documented the new behavior in API.md and openapi.yaml.

Closes #904

Test plan

  • GET /transactions twice, second call with If-None-Match set to the first response's ETag → expect 304
  • Same for GET /payment-requests
  • Confirm a changed result (e.g. after a new payment lands) produces a different ETag and a 200 with body

🤖 Generated with Claude Code

https://claude.ai/code/session_0176gtGcUc8tMZmF8aZysxmD

…requests

Hashes the serialized response and returns it as an ETag header. When the
request's If-None-Match already matches, responds 304 Not Modified with an
empty body instead of the full payload, cutting bandwidth for polling
frontends.

Closes kellymusk#904

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176gtGcUc8tMZmF8aZysxmD
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@joel-metal 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

Development

Successfully merging this pull request may close these issues.

Add ETag support for GET /transactions and GET /payment-requests

1 participant