@xtccc
2016-02-17T09:51:04.000000Z
字数 582
阅读 2962
开发工具
目录
形式:
curl -H "Content-Type: application/json" \
-X POST \
-d [JSON_string] \
http://[host]:[port]/[api_path]
例:
curl -H "Content-Type: application/json" \
-X POST \
-d '{"months": [1,2,4,7], "attrs": {"FREA":0,"CARE":2}}' \
http://localhost:8812/api/v2/billimpact/0/3
形式:
curl -H "Content-Type: application/json" \
-X POST \
-d @[local_file_path] \
http://[host]:[port]/[api_path]
例:
curl -H "Content-Type: application/json" \
-X POST \
-d @/Users/tao/Downloads/post.json \
http://localhost:8812/api/v2/billimpact/0/3