Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请求参数支持json类型 #21

Closed
znau opened this issue Dec 2, 2016 · 1 comment
Closed

请求参数支持json类型 #21

znau opened this issue Dec 2, 2016 · 1 comment

Comments

@znau
Copy link

znau commented Dec 2, 2016

对于Restful 风格api ,参数可能会传送一段json字符,例如:
data={"did":"sssfsdfsdf","mfrom":"eced"}
这个可以参考 小幺鸡(http://www.xiaoyaoji.com.cn/) 里 请求参数类型有一个object类型。希望CrapApi以后可以支持。

另:1. 小幺鸡 右上角有一个环境的选择,感觉也挺实用的
2. 如果能够根据接口生成一段curl 命令就更好了
curl -k -L -X POST "http://api.xxxx.cn/abc/def" -d data='{"did":"sssfsdfsdf","mfrom":"eced"}'

@EhsanTang
Copy link
Owner

目前支持参数中传json数据,详情见样例:http://api.crap.cn/index.do#/de2055f4-656a-495b-85dd-6591922bdf5d/front/interfaceDetail/895aaabc-f3d7-461c-bad6-e9c44f6cdb4f ,选择自定义参数即可输入json,并且支持为json串添加备注

环境切换、curl会考虑加上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants