Skip to content

Adopter API docs added#53

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

Adopter API docs added#53
Hashini-Deshappriya wants to merge 29 commits into
masterfrom
hashini/docs

Conversation

@Hashini-Deshappriya
Copy link
Copy Markdown
Collaborator

@Hashini-Deshappriya Hashini-Deshappriya commented May 12, 2026

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 3 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.
Comment thread docs/API.md
Jaykumar677 and others added 24 commits May 22, 2026 19:37
@AKV2703 AKV2703 closed this May 22, 2026
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.

7 participants