Skip to content

Hashini/docs#61

Closed
Hashini-Deshappriya wants to merge 31 commits into
masterfrom
hashini/docs
Closed

Hashini/docs#61
Hashini-Deshappriya wants to merge 31 commits into
masterfrom
hashini/docs

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.

Hashini-Deshappriya and others added 30 commits May 12, 2026 23:12
Reorganize and enhance documentation for Adopters API, including purpose, architecture, security, endpoints, validation rules, error handling, and testing strategies.
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.

5 participants