Skip to content

Add OpenAPI examples for /api/referrals - #707

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:mainfrom
Ugooweb:feature/issue-b026-referrals-openapi-example
Jul 28, 2026
Merged

Add OpenAPI examples for /api/referrals#707
greatest0fallt1me merged 1 commit into
Predictify-org:mainfrom
Ugooweb:feature/issue-b026-referrals-openapi-example

Conversation

@Ugooweb

@Ugooweb Ugooweb commented Jul 28, 2026

Copy link
Copy Markdown

Closes #600

This PR adds the OpenAPI example request/response bodies for the /api/referrals endpoints

Changes:

  • Added POST /api/referrals for creating new referral codes (with a 201 response and campaignId request body example).
  • Added GET /api/referrals for listing user referrals.
  • Updated src/openapi/registry.ts, the root openapi.yaml, and src/openapi.yaml.

The API definitions use standardized error envelopes (like ErrorBody) as required.

@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

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

@greatest0fallt1me
greatest0fallt1me merged commit 82bc303 into Predictify-org:main Jul 28, 2026
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Neat and focused — merging. 👍

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 OpenAPI examples for /api/referrals [b#026]

2 participants