drupal-api-endpoints
Installation
SKILL.md
Drupal API Endpoint Patterns
Critical Rules
ALWAYS follow these rules for ALL endpoints:
- ALWAYS use UUIDs - never expose entity IDs.
- ALWAYS check for existing endpoints before creating a new one.
- NEVER use the core REST module - use custom routes.
- ALWAYS use JSON for request/response.
- ALWAYS implement access controls and caching.
- Place routes in the correct module - the module that owns the functionality.
- AVOID
/api/*paths for custom routes - reserved for JSON:API.
URL Pattern Convention
Preferred pattern: /MODULE-api/resource/action