No commit activity in last 3 years
No release in over 3 years
This gem is generate api template for Cloud Foundry Service Broker API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
~> 3.0

Runtime

 Project Readme

Rails Service Broker

Very simple solution for create service broker on Ruby on Rails.

Installation

Add this line to your application's Gemfile:

gem 'rails_service_broker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails_service_broker

Usage

When you would like to create AwesomeService ServiceBroker, you can write this.

# rails g rails_service_broker:api awesome_service
      create  app/apis/awesome_service/base.rb
      create  app/apis/awesome_service/v2/base.rb
      create  app/apis/awesome_service/v2/catalog.rb
      create  app/apis/awesome_service/v2/service_binding.rb
      create  app/apis/awesome_service/v2/service_instance.rb
      create  config/awesome_service.yml
      create  app/views/api/awesome_service/v2/catalog.json.jbuilder
       route  mount AwesomeService::Base => '/awesome_service'

Service Broker Endpoint is create at http://localhost:3000/awesome_service/ enjoy!

You have to edit config/awesome_service.yml for define service.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kirikak2/rails_service_broker.

License

The gem is available as open source under the terms of the MIT License.