- Published on
分页设计最佳实践
- Authors
- Name
- Hao Chen
- @haoel
Content
https://developer.github.com/v3/#pagination github 的分页设计用到了 hypermedia
https://jsonapi.org/examples/#pagination jsonapi的分页规范
正确标准的做法: Link header - RFC 5988 Page#6 https://tools.ietf.org/html/rfc5988#page-6 上面的链接提供了github的案例。然后,其它的最佳实践可以参看 https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
Link Preview
- https://developer.github.com/v3/
- GitHub REST API documentation - GitHub Docs
- To create integrations, retrieve data, and automate your workflows, build with the GitHub REST API.