fescover
V2EX  ›  问与答

restApi 前端如何解析返回类型

  •  
  •   fescover · Dec 1, 2022 · 1038 views
    This topic created in 1280 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   ·   930 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 19:58 · PVG 03:58 · LAX 12:58 · JFK 15:58
    ♥ Do have faith in what you're doing.