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

restApi 前端如何解析返回类型

  •  
  •   fescover · Dec 1, 2022 · 974 views
    This topic created in 1255 days ago, the information mentioned may be changed or developed.

    RT
    靠文档耗时,费力,还容易出错
    大伙公司采用的做法是什么?

    • IDL?
    • APIJSON?
    • Graphql?
    1 replies    2022-12-01 19:40:01 +08:00
    molvqingtai
        1
    molvqingtai  
       Dec 1, 2022
    公司用的 YAPI ,然后为之写了一个 typescript 插件,没有使用市面上 swagger to ts 自动生成请求代码的方案,入侵性太强,需要后端输出严谨的文档,不太现实...

    https://github.com/molvqingtai/yapi-interface-extension
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:29 · PVG 14:29 · LAX 23:29 · JFK 02:29
    ♥ Do have faith in what you're doing.