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

V2EX 的 RESTful API 似乎配置错误(Method Not Allowed)

  •  
  •   Zerek · Jun 30, 2022 · 2272 views
    This topic created in 1400 days ago, the information mentioned may be changed or developed.

    在调用 “删除指定的提醒” 方法时

    删除指定的提醒
    DELETE notifications/:notification_id
    完整例子:
    
    DELETE https://www.v2ex.com/api/v2/notifications/123456
    Authorization: Bearer bd1f2c67-cc7f-48e3-a48a-e5b88b427146
    

    接口返回内容:

    <html><title>405: Method Not Allowed</title><body>405: Method Not Allowed</body></html>
    

    是否在配置站点时禁用了 DELETE ?

    Zerek
        1
    Zerek  
    OP
       Jun 30, 2022
    Livid
        2
    Livid  
    MOD
    PRO
       Jul 1, 2022
    收到,我来检查一下这个地方。感谢反馈。
    Zerek
        3
    Zerek  
    OP
       Jul 1, 2022
    @Livid 现在是没有 405 了,但是似乎接口还是无效状态,调用返回 None
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2397 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
    ♥ Do have faith in what you're doing.