app/controllers/washout_builder/washout_builder_controller.rb
# Will show all api services if no name parameter is receiverd
# If a name parameter is present will try to use that and find a controller
# that was that name by camelcasing the name .
# IF a name is provided will show the documentation page for that controller
# @see #all_services
# @see WashoutBuilder::Document::Generator#new
#
# @return [void]
#
# @api public
Will show all api services if no name parameter is receiverd
If a name parameter is present will try to use that and find a controller
that was that name by camelcasing the name .
IF a name is provided will show the documentation page for that controller
Will show all api services if no name parameter is receiverd If a name parameter is present will try to use that and find a controller that was that name by camelcasing the name . IF a name is provided will show the documentation page for that controller
def all
      params[:name] = env_controller_path if env_controller_path.present?
      find_all_routes
      route_details = params[:name].present? ? controller_is_a_service?(params[:name]) : nil
      if route_details.present? && defined?(controller_class(params[:name]))
        @document = WashoutBuilder::Document::Generator.new(route_details, controller_class(params[:name]).controller_path)
        @file_to_serve = 'wash_with_html/doc'
        render_html(@file_to_serve)
      else
        @services = all_services
        @file_to_serve = 'wash_with_html/all_services'
        render_html(@file_to_serve)
      end
    end
def all params [ :name ] = env_controller_path if env_controller_path . present? find_all_routes route_details = params [ :name ] . present? ? controller_is_a_service? ( params [ :name ] ) : nil if route_details . present? && defined? ( controller_class ( params [ :name ] ) ) @document = WashoutBuilder :: Document :: Generator . new ( route_details , controller_class ( params [ :name ] ) . controller_path ) @file_to_serve = 'wash_with_html/doc' render_html ( @file_to_serve ) else @services = all_services @file_to_serve = 'wash_with_html/all_services' render_html ( @file_to_serve ) end end
Will show all api services if no name parameter is receiverd
If a name parameter is present will try to use that and find a controller
that was that name by camelcasing the name .
Will show all api services if no name parameter is receiverd If a name parameter is present will try to use that and find a controller that was that name by camelcasing the name .
None
void
see
None
see
None
api
None