爱意满满的作品展示区。
irainy

交互式命令行工具: HTTP & REST Client

  •  
  •   irainy · Oct 27, 2015 · 2812 views
    This topic created in 3876 days ago, the information mentioned may be changed or developed.
    Supplement 1  ·  Oct 27, 2015

    主要特征:

    • 自动保存当前测试的 protocol//hostname , GET/POST 方法,不需要每次测试都输入
    http POST https://example.com/api/v1/do/action name=value
    

    而只需要:

    /api/v1/do/action name=value
    
    • pretty JSON (& JSON only)
    • JSON 结果的缺省展示 (it command)
    6 replies    2015-10-27 17:55:41 +08:00
    FrankFang128
        1
    FrankFang128  
       Oct 27, 2015
    试试 httpie?
    irainy
        2
    irainy  
    OP
       Oct 27, 2015
    @FrankFang128 功能设计的时候实际上就是参考 httpie 的,但我的想法是基本上我们测试 API 都是针对同一 host ,用的时候也可以更直观:

    ```
    GET /orgs/octokit/repos
    ```
    anthozoan77
        3
    anthozoan77  
       Oct 27, 2015
    star ,学习 :)
    irainy
        4
    irainy  
    OP
       Oct 27, 2015
    @anthozoan77 刚刚开始写,欢迎一起来~
    anthozoan77
        5
    anthozoan77  
       Oct 27, 2015
    @irainy 可以可以。行胜于言
    fhefh
        6
    fhefh  
       Oct 27, 2015
    mark~~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2892 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 05:46 · PVG 13:46 · LAX 22:46 · JFK 01:46
    ♥ Do have faith in what you're doing.