Skip to content

Claim api - #123

Merged
jhayniffy merged 4 commits into
InsurNiffy:mainfrom
yahia008:claim-api
Mar 25, 2026
Merged

Claim api#123
jhayniffy merged 4 commits into
InsurNiffy:mainfrom
yahia008:claim-api

Conversation

@yahia008

Copy link
Copy Markdown
Contributor

🚀 PR: Claims REST API (Closes #41)
📌 Summary

Adds claims endpoints with aggregates, quorum progress, and optional auth filter for “needs my vote”.

✅ What was added
GET /claims & GET /claims/:id with vote tallies + quorum progress
Deadline fields aligned with contract rules
Optional JWT filter (returns claims requiring user’s vote)
Sanitized responses (prevent XSS)
Evidence URLs via trusted gateway list
Optional Redis caching for hot claims
🔁 Flow

Request → (Optional Auth) → Aggregate + Sanitize → Cache → Response ✅

🎯 Result
Frontend gets ready-to-use claim data
Accurate deadlines & quorum metrics
Scalable + safe API

Closes #41

@drips-wave

drips-wave Bot commented Mar 25, 2026

Copy link
Copy Markdown

@yahia008 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

@jhayniffy
jhayniffy merged commit d4862b2 into InsurNiffy:main Mar 25, 2026
1 of 3 checks passed
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.

Backend — Claims REST API: aggregates, quorum progress, and authenticated “needs my vote”

2 participants