CNode

分享一个小项目&&接口测试

分享
Mmgoofyy发布于10 年前最后回复10 年前1 回复2931 浏览0 收藏

IOS开发者,国庆闲来无事,随便写了一个小程序,顺带测试程序。Mysql + node github地址

简单接口说明

** Sign Up Scrpit**

echo '{"phone":"18814182337","password":"sdljkfsadljfksdjfs","device":"iphone6s plus","signFrom":0}' | http post http://127.0.0.1:3000/users/signup

Response:

Success { "code": 1, "data": null, "method": "POST", "msg": "账户注册成功" } ERROR - 01 { "code": 2, "error": "手机号已经注册", "method": "POST", "msg": "账户已经注册" } ERROR - 02 { "code": 3, "error": "未知错误", "method": "POST", "msg": "注册出错了" }

查看回复

回复 (1)

D
DevinXian#1·10 年前

可以看看@i5tingmoajs,另外要吐槽你的英语,竟然比我还烂0.0;鼓励练手

参与回复
登录后即可参与回复。登录