Backend Cơ bản
REST API Best Practices: thiết kế API dễ dùng và bảo trì
Lê Hoàng Long20 thg 6, 2026 9 phút đọc
API tốt là API predictable. Client không nên đoán response format.
Checklist: - Dùng HTTP verbs đúng nghĩa - Status code chuẩn (200, 201, 400, 401, 404, 500) - Pagination với cursor hoặc offset - Consistent error format - API versioning (/v1/)
API Backend REST