= washout_builder {Gem Version}[http://badge.fury.io/rb/washout_builder] {}[https://travis-ci.org/bogdanRada/washout_builder] {Dependency Status}[https://www.versioneye.com/user/projects/52fc7297ec1375346600007d]{Dependency Status}[https://www.versioneye.com/user/projects/52fc7297ec1375346600007d] {Coverage Status}[https://coveralls.io/r/bogdanRada/washout_builder] {}[https://codeclimate.com/github/bogdanRada/washout_builder] {Repo Size}[https://github.com/bogdanRada/washout_builder] {Version Downloads}[https://rubygems.org/gems/washout_builder] = Overview WashOutBuilder is a Soap Service Documentation generator (extends WashOut https://github.com/inossidabile/wash_out/) The way WashOut is used is not modified, it just extends its functionality by generating html documentation to your services that you write = Features * Provides way of seeing the available services with links to documentation, endpoint and namespace * Provides a human-readable HTML documentation generated for each service that you write = Screenshots (just an example) * {Screenshot 1}[https://f.cloud.github.com/assets/1104923/1582604/53ad8c04-51f1-11e3-963c-fb6c58d0a6a6.png] * {Screenshot 2}[https://f.cloud.github.com/assets/1104923/1563031/0efe630c-5058-11e3-8502-1e0b145de80c.png] * {Screenshot 3}[https://f.cloud.github.com/assets/1104923/1563032/0f43ddb0-5058-11e3-91d1-35409d4017b0.png] = Requirements 1. {Ruby 1.9.x or Ruby 2.0.x}[http://www.ruby-lang.org] 2. {Ruby on Rails}[http://rubyonrails.org]. 3. {WashOut Gem version >= 0.9.1}[https://github.com/inossidabile/wash_out] = Compatibility Rails >3.0 only. MRI 1.9, 2.0, JRuby (--1.9). Ruby 1.8 is not officially supported since 0.5.3. We will accept further compatibilty pull-requests but no upcoming versions will be tested against it. Rubinius support temporarily dropped since 0.6.2 due to Rails 4 incompatibility. = Setup Type the following from the command line to install: gem install washout_builder Add the following to your Gemfile: gem "washout_builder" it will automatically install also +wash_out+ gem that is currently used Or if you want this to be available only in development mode , you can do something like this inside the Gemfile: gem 'wash_out' # The WashOut gem would be used also in production group :development, :test do gem 'washout_builder' # only available in development mode. end Please read {release details}[https://github.com/bogdanRada/washout_builder/releases] if you are upgrading. We break backward compatibility between large ticks but you can expect it to be specified at release notes. = Usage The way soap_actions, or reusable types are defined or how the configuration is made using WashOut(https://github.com/inossidabile/wash_out) haven't changed You can still do everything that gem does . In order to see the documentation you must write something like this in the routes (exactly like you would do when using only WashOut) In the following file +config/routes.rb+ you can put this configuration WashOutSample::Application.routes.draw do wash_out :rumbas wash_out :my_other_service namespace :api do wash_out :project_service end mount WashoutBuilder::Engine => "/washout" end You can access the url +/washout+ and you will see a list with available services ( in our case there are only two : The RumbasController and MyOtherServiceController) with links to their documentation and where you can find the WSDL. If you want to access directly the hml documentation that was generated for RumbasController you can do that by accessing url like this: /washout/Rumbas #camelcase name /washout/rumbas #without camelcase /washout/Api::ProjectService # for namespaced services with camelcase /washout/api/project_service # without camelcase When specifying the soap_service you can also pass a option for description . Here is an example soap_service namespace: "http://my.app.com/my_service/wsdl", :description => "here goes some description for your service" When specifying the soap_action you can also pass a option for description and a list of exceptions(need to be classes) that the method can raise at a certain moment. Here is an example : soap_action "find", :args => {:number => :integer} , :return => :boolean, :raises => [MyCustomSoapError, MyOtherCustomSoapError ] , :description => "some description about this method to show in the documentation" The exception classes used must inherit from WashOut::Dispatcher::SOAPError, which has by default a error code and a message as attributes . = Testing To test, do the following: 1. cd to the gem root. 2. bundle install 3. bundle exec rake = Contributions Please log all feedback/issues via {GitHub Issues}[http://github.com/bogdanRada/washout_builder/issues]. Thanks. == Contributing to washout_builder * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet. * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it. * Fork the project. * Start a feature/bugfix branch. * Commit and push until you are happy with your contribution. * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. == Copyright Copyright (c) 2013 bogdanRada. See LICENSE.txt for further details.