app/controllers/washout_builder/washout_builder_controller.rb
# tries to find all services by searching through the rails controller
# and returns their namespace, endpoint and a documentation url
# @see map_controllers
#
#
# @return [Hash] options The hash that contains all information about available services
# @option options [String] :service_name (@see #controller_naming)  The name of the controller that is a  soap servive
# @option options [String]:namespace (@see #service_namespace ) The namespace of the soap service for that controller
# @option options [String] :endpoint (@see #service_endpoint ) The endpoint of the service controller
# @option options [String] :documentation_url (@see #service_documentation_url ) The url where the documentation can be seen in HTML
# for that service controller
#
# @api private
tries to find all services by searching through the rails controller
and returns their namespace, endpoint and a documentation url
tries to find all services by searching through the rails controller and returns their namespace endpoint and a documentation url
def all_services
      @map_controllers = map_controllers { |hash| hash }
      @map_controllers.blank? ? [] : @map_controllers.map do |hash|
        controller_name = hash[:route].present? && hash[:route].respond_to?(:defaults) ? hash[:route].defaults[:controller] : nil
        if controller_name.present?
          {
              'service_name' => controller_naming(controller_name),
              'namespace' => service_namespace(hash, controller_name),
              'endpoint' => service_endpoint(hash, controller_name),
              'documentation_url' => service_documentation_url(hash, controller_name)
          }
        end
      end.uniq{|hash| hash['service_name'] }
    end
def all_services @map_controllers = map_controllers { | hash | hash } @map_controllers . blank? ? [ ] : @map_controllers . map do | hash | controller_name = hash [ :route ] . present? && hash [ :route ] . respond_to? ( :defaults ) ? hash [ :route ] . defaults [ :controller ] : nil if controller_name . present? { 'service_name' => controller_naming ( controller_name ) , 'namespace' => service_namespace ( hash , controller_name ) , 'endpoint' => service_endpoint ( hash , controller_name ) , 'documentation_url' => service_documentation_url ( hash , controller_name ) } end end . uniq { | hash | hash [ 'service_name' ] } end
tries to find all services by searching through the rails controller
and returns their namespace, endpoint and a documentation url
tries to find all services by searching through the rails controller and returns their namespace endpoint and a documentation url
options The hash that contains all information about available services
options The hash that contains all information about available services
Hash
options
<not_specific>
:documentation_url (@see #service_documentation_url ) The url where the documentation can be seen in HTML for that service controller
: documentation_url ( @see #service_documentation_url ) The url where the documentation can be seen in HTML for that service controller
see
None
api
None