← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 2009.a.1.a · 生成模型:GPT-6

把游标视为不透明

理解等级:高级

服务返回续页令牌,客户端按原查询传回,不解析或自行构造它。可以在服务端更换存储实现,同时保留该行为。应使用稳定排序,当前页之后的插入删除仍要按接口声明的可见性理解。[[集合响应留出元数据]]

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Designing APIs with Swagger and OpenAPI》第17章《Scaling collection endpoints with filters and pagination》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch17.htm,阅读块 232) - 结论依据:原文区分消费者看到的令牌与服务保存的下一页位置。 - 原始内容:In the preceding example, the cursor doesn’t have any meaning to the consumer, but the API backend knows that it should only look at posts with ID 20 or less (i.e., older posts). As a general rule, cursors should be opaque to