Skip to content

feat: add GET /vouching/requests endpoint for mentors #21

Description

@EmeditWeb

Problem

Mentors have no way to see who has requested
a vouch from them. There is no endpoint for
incoming vouch requests.

What To Build

Add GET /api/v1/vouching/requests endpoint.
Requires JWT auth (mentor wallet).

Returns list of learners who have requested
a vouch from the authenticated wallet.

Each item includes:

  • learner wallet address
  • learner reputation score
  • requested loan amount
  • loan purpose
  • request timestamp

Files To Touch

  • src/modules/vouching/vouching.controller.ts
  • src/modules/vouching/vouching.service.ts

Acceptance Criteria

  • Returns only requests for authenticated wallet
  • Includes learner reputation score
  • Full Swagger documentation
  • npm run build passes

Mandatory Checks Before PR

  • npm run build passes
  • Swagger decorator added
  • PR references this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions