Skip to content

Adopters API documentation added#62

Merged
nikhil-3210 merged 1 commit into
masterfrom
hashini/AdopterAPIdocs
May 22, 2026
Merged

Adopters API documentation added#62
nikhil-3210 merged 1 commit into
masterfrom
hashini/AdopterAPIdocs

Conversation

@Hashini-Deshappriya
Copy link
Copy Markdown
Collaborator

Adopters API – Summary Description

  • The Adopters API is a core module in the TreeO2 backend that manages adopter records through a secure, role-based, and fully validated CRUD system. It supports creating, retrieving, updating, deleting, and listing adopters with pagination.

  • The module follows the project’s enterprise architecture pattern with clear separation of routes, controller, and service layers, using Prisma for database operations and centralized error handling for consistency.

  • All endpoints are protected with authentication and role-based access control, ensuring only authorised users (primarily ADMIN and MANAGER roles for read access, and ADMIN for mutations) can perform operations.

  • It also enforces strict validation rules for input data, standardized response structures, and comprehensive test coverage (unit and integration tests). Swagger documentation is provided for full API visibility and testing.

  • Overall, the Adopters API provides a secure, scalable, and maintainable implementation aligned with the TreeO2 backend engineering standards.

@nikhil-3210 nikhil-3210 self-requested a review May 22, 2026 13:01
@nikhil-3210 nikhil-3210 merged commit 1f152ae into master May 22, 2026
1 check 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.

3 participants