Skip to content

[feat] Claims - endpoints for Claiming a resource #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

alex-vercel
Copy link

@alex-vercel alex-vercel commented Jul 4, 2025

New API endpoints for the Claim/transfer flow (create/verify/complete).

NOTE 1: This uses an in-memory array to 'persist' test claims between creation, verification and completion - this array will not live very long but it should be sufficient for an end-to-end test to pass. If we need something longer-lived we can integrate ephemeral Redis but that seems like overkill for this example repo.

NOTE 2: I have also assumed the naming convention for claim IDs should be claim_XXXXXXXX - I'm not sure if that's a safe assumption or not.

NOTE 3: I have added 2 GET endpoints to GET claims (either all in the in-mem array, or a specific one by ID) - this isn't in the spec but was very helpful when developing the APIs and I suspect will be useful when debugging the connection between this and the Vercel APIs.

Copy link

vercel bot commented Jul 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
edge-config-write-key-integration ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2025 0:26am
example-integration ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2025 0:26am

@alex-vercel alex-vercel closed this Jul 4, 2025
@alex-vercel alex-vercel deleted the alexmartin/vmkt-291-handle-partner-api-endpoints-in-our-example-integration branch July 4, 2025 19:56
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.

1 participant