No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
service_stubs
test
.env
Gemfile
Gemfile.lock
Procfile
README.md
config.ru
web.rb

README.md

Service Stub Example

An example app demonstrating service stubs in action for both development and testing environments. Read the full article on the Heroku API Blog.

Development

$ bundle install
$ foreman start
$ curl -X POST http://localhost:5000/endpoints
{"id":123,"cname":"tokyo-1234.herokussl.com","elb_dns_name":"elb016353-1923944129.us-east-1.elb.amazonaws.com"}%

Testing

$ bundle install
$ ruby test/web_test.rb