Design well-structured, scalable APIs using REST, GraphQL, or event-driven patterns. Focus on resource design, versioning, error handling, pagination, rate limiting, and security.
| Method | Idempotent | Safe | Use For | Success Status |
| GET | Yes | Yes | Read resource | 200 OK | | POST | No | No | Create resource | 201 Created | | PUT | Yes | No | Replace entire resource | 200 OK, 204 No Content | | PATCH | No | No | Update specific fields | 200 OK, 204 No Content | | DELETE | Yes | No | Remove resource | 204 No Content, 200 OK |
Progetta API sicure, scalabili e gestibili utilizzando RESTful, GraphQL e modelli basati sugli eventi. Utilizzalo durante la progettazione di nuove API, l'evoluzione delle API esistenti o la definizione di standard API per i team. Fonte: ancoleman/ai-design-components.