heroku-api-stub:Heroku API 的服务存根

时间:2021-06-23 22:40:06
【文件属性】:
文件名称:heroku-api-stub:Heroku API 的服务存根
文件大小:18KB
文件格式:ZIP
更新时间:2021-06-23 22:40:06
Ruby Heroku API 存根 Heroku API 的服务存根。 将使用表示该端点正常返回的数据的示例序列化响应来响应 Heroku API 的所有公共端点。 在实际 API 调用可能会导致对实际数据的操作不便的开发和测试情况下很有用。 用法 独立运行 Heroku API 存根可以从它自己的项目中运行: bundle install bundle exec bin/heroku-api-stub curl -i -H "Accept: application/vnd.heroku+json; version=3" --user :anything http://localhost:4000/apps/anything 在项目中 它也可以添加到另一个项目中,以帮助促进开发过程中的正常交互。 将此添加到您的Gemfile : source "https://rubygems.org"
【文件预览】:
heroku-api-stub-master
----bin()
--------heroku-api-stub(384B)
----data()
--------doc.json(63KB)
----Rakefile(145B)
----Procfile(50B)
----Gemfile(39B)
----Gemfile.lock(449B)
----spec()
--------heroku_api_stub()
--------spec_helper.rb(140B)
----.gitignore(6B)
----lib()
--------heroku_api_stub.rb(133B)
--------heroku_api_stub()
----README.md(2KB)
----heroku_api_stub.gemspec(949B)

网友评论