- Added GitHub spec-kit for development workflow - Standardized file signatures to Descomplicar® format - Updated development configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
# care-api Development Guidelines
|
|
|
|
Auto-generated from all feature plans. Last updated: 2025-09-12
|
|
|
|
## Active Technologies
|
|
- PHP 8.1+ WordPress plugin development (001-care-api-sistema)
|
|
- WordPress REST API framework with JWT authentication
|
|
- KiviCare 35-table database schema integration
|
|
- PHPUnit testing with WordPress testing framework
|
|
|
|
## Project Structure
|
|
```
|
|
src/
|
|
├── models/ # KiviCare entity models
|
|
├── services/ # Business logic services
|
|
├── endpoints/ # REST API endpoint handlers
|
|
├── auth/ # JWT authentication service
|
|
└── utils/ # Helper utilities
|
|
|
|
tests/
|
|
├── contract/ # API contract tests
|
|
├── integration/ # Database integration tests
|
|
└── unit/ # Unit tests
|
|
```
|
|
|
|
## Commands
|
|
# WordPress/PHP specific commands
|
|
wp plugin activate kivicare-api
|
|
wp config set WP_DEBUG true
|
|
vendor/bin/phpunit tests/
|
|
wp db query "SELECT..."
|
|
|
|
## Code Style
|
|
- WordPress coding standards (WPCS)
|
|
- PSR-4 autoloading for classes
|
|
- WordPress hooks and filters for extensibility
|
|
- Prepared SQL statements for security
|
|
|
|
## Recent Changes
|
|
- 001-care-api-sistema: Added REST API for KiviCare healthcare management system
|
|
|
|
<!-- MANUAL ADDITIONS START -->
|
|
<!-- MANUAL ADDITIONS END --> |