submile 验证接口的技巧

来源:互联网 发布:java 游戏设计教程pdf 编辑:程序博客网 时间:2024/05/19 10:55


1,下载rester 包

         ctrl+shift+p   唤出窗口。

         RESTer:HTTP Request     安装插件


2,安装完成

**************************** 格式 *****************************

            /**
     * @breif    登录
     * @public
     * @note
     * - POST请求
     *     - account      str 帐户
     *     - password     str 密码
     *     - token        str 用户登录记号
     * - 测试示例
     * @code{.sh}
POST /user/login          // 控制器方法名
Host: beta.wangdai.yunlala.com      // 主机域名
@protocol:https              // http,https
@timeout: 23                 
Content-type: application/x-www-form-urlencoded
account:admin                    // account:val
password:123456

***************************************************************

    从post到最后选中

     ctrl+alt+r           // 测试连接 返回格式


3,如果是json格式,安装插件

      JSON Reindent:...          安装

      选中返回的格式

      ctrl+shift+p   唤出窗口。 输入j,选中刚下得 JSON Re 回车。

       变数组