V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
SethShi
0.01D
V2EX  ›  V2EX API

https://www.sunp.eu.org/api/v2/topics/1/replies?p=2 接口分页参数无效

  •  
  •   SethShi ·
    seth-shi · Jun 2, 2025 · 1518 views
    This topic created in 339 days ago, the information mentioned may be changed or developed.

    现在是请求接口返回空代表没有下一页, 如果只有一页参数, 那么重复请求一直无法结束

    那么这个没有下一页的逻辑我是否应该换成 items.len < 20

    6 replies    2025-06-12 10:03:28 +08:00
    SethShi
        1
    SethShi  
    OP
       Jun 2, 2025
    Livid
        2
    Livid  
    MOD
    PRO
       Jun 3, 2025
    @seth19960929 谢谢。

    这个接口现在会包括一组新的信息:



    total: 这个主题的回复数量
    pages: 页数
    per_page: 每页的回复数量
    SethShi
        3
    SethShi  
    OP
       Jun 3, 2025
    @Livid 是否可以在 /api/v2/nodes/:name/topics 返回发布人信息, 现在就是很奇怪, 返回了最后回复人的信息, 确没有发布人信息
    Livid
        4
    Livid  
    MOD
    PRO
       Jun 3, 2025
    @seth19960929 收到,我看一下。
    SethShi
        5
    SethShi  
    OP
       Jun 3, 2025
    cool, 分页安排上
    SethShi
        6
    SethShi  
    OP
       Jun 12, 2025

    @Livid 接口缓存貌似不生效?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3464 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 11:09 · PVG 19:09 · LAX 04:09 · JFK 07:09
    ♥ Do have faith in what you're doing.