Skip to content

implement-project-endpoint#81

Merged
ayshadogo merged 4 commits into
Dfunder:mainfrom
AbdulSnk:devBranch
Jun 22, 2026
Merged

implement-project-endpoint#81
ayshadogo merged 4 commits into
Dfunder:mainfrom
AbdulSnk:devBranch

Conversation

@AbdulSnk

@AbdulSnk AbdulSnk commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Create Project Endpoint

Summary

Adds the POST /api/projects endpoint, allowing authenticated, KYC-approved users to create a new project/campaign. Unverified users are blocked with a 403.

Changes

Added POST /api/projects endpoint
Enforced authentication and kycStatus: approved check before project creation
Added validation for all required project fields
New projects are created with status: pending, awaiting admin approval
Returns 201 Created with the newly created project on success

Closes #71

List Users (Admin) Endpoint

Summary

Adds the GET /api/admin/users endpoint, allowing admins to retrieve a paginated, filterable list of all users. Non-admins are blocked with a 403.

Changes

Added GET /api/admin/users endpoint, restricted to admin role
Added support for query params: page, limit, search (matches name/email), role, kycStatus
Returns paginated response in the shape: { data, total, page, totalPages }

closes #52

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Job Well Done the King🙇‍♂️

Thank you for your contribution

@ayshadogo ayshadogo merged commit a00d14c into Dfunder:main Jun 22, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 22, 2026
5 tasks
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.

Create Project Endpoint Admin: Get All Users (Paginated)

2 participants