isaced
0.83D
V2EX  ›  V2EX API

[API 2.0 Beta] 获取指定节点下的主题 - 可以返回更多字段吗?

  •  
  •   isaced ·
    isaced · Aug 17, 2022 · 2538 views
    This topic created in 1365 days ago, the information mentioned may be changed or developed.

    获取主题列表接口目前只有以下这几个字段返回,可以加上发帖人信息(用户名和头像)吗?

    接口:

    • 获取指定节点下的主题
    • GET nodes/:node_name/topics
    {
      "id": 870986,
      "title": "xxx",
      "content_rendered": "xxx",
      "syntax": 1,
      "url": "https://www.v2ex.com/t/870986",
      "replies": 3,
      "last_reply_by": "raycool",
      "created": 1659708198,
      "last_modified": 1659708198,
      "last_touched": 1659751076
    }
    

    不然做客户端显示不了头像看着很不习惯:

    截屏 2022-08-17 21.36.20.png

    1 replies    2025-09-09 14:44:38 +08:00
    oligi
        1
    oligi  
       Sep 9, 2025
    复议,感觉可以增加 member 字段返回
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5520 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 03:45 · PVG 11:45 · LAX 20:45 · JFK 23:45
    ♥ Do have faith in what you're doing.