本文首发于个人博客https://kezunlin.me/post/4f5f98b9/,欢迎阅读最新内容!
how to install and use resty command line client for interacting with rest services
Guide
install
You have curl, right? Okay.
curl -L https://raw.githubusercontent.com/micha/resty/master/resty > resty
Source the script before using it.
. resty
Once resty is installed, set your REST host to which you will be making your requests.
resty http://127.0.0.1:8080/data
http://127.0.0.1:8080/data*
And now you can Make some HTTP requests.
$ GET /blogs.json
[ {"id" : 1, "title" : "first post", "body" : "This is the first post"}, ... ]