Playbook: Adding a New API
This playbook describes the process for adding a new API endpoint to the Salescentri platform.
Prerequisites
- Access to the API codebase
- Understanding of existing API patterns (see v2 Wallets for reference)
Steps
- Design - Define the endpoint contract (method, path, request/response schema)
- Implement - Add handler following existing patterns
- Document - Add documentation in the appropriate
docs/api/section - Test - Write and run integration tests
- Review - Submit for code review
- Deploy - Follow standard deployment process
Checklist
- OpenAPI/Swagger spec updated
- Documentation added to docs
- Changelog updated
- Tests passing