【文件属性】:
文件名称:coin_rack:硬币的 REST API
文件大小:7KB
文件格式:ZIP
更新时间:2021-07-08 18:57:40
Ruby
币架
一个简单的应用程序,它为提供了一个 REST 接口。
快速开始
运行服务器
$ gem install coin_rack
$ coin_rack --run
提出一些客户要求
$ curl --data " value=true " http://localhost:9292/example.json
{ " example " :true}
$ curl http://localhost:9292/example.json
{ " example " :true}
$ curl -X DELETE http://localhost:9292/example.json
{ " example " :true}
$ curl http://localhost:9292/example.json
{ " example " :null}
更喜欢 XML?
$ curl --data
【文件预览】:
coin_rack-master
----coin_rack.gemspec(1KB)
----config.ru(122B)
----LICENSE.txt(1KB)
----lib()
--------coin_rack()
--------coin_rack.rb(2KB)
----Gemfile(38B)
----Rakefile(118B)
----.travis.yml(119B)
----test()
--------coin_rack_test.rb(8KB)
----README.md(3KB)
----.gitignore(154B)
----bin()
--------coin_rack(860B)