Complete Guide to API Pagination Design -- Patterns, Pitfalls, and Best Practices