title: How to get routes by Grape API
body: <p>I use gem, grape for api.
  I tried to get api urls by the command <code>rake grape:routes</code></p>
  
  <pre><code>    namespace :grape do
        desc "routes"
        task :routes =&gt; :environment do
          API::Root.routes.map { |route| puts "#{route} \n" }
        end
      end
  </code></pre>
  
  <p>but I got by <code>rake grape:routes</code></p>
  
  <pre><code>    #&lt;Grape::Router::Route:0x007f9040d13878&gt;
      #&lt;Grape::Router::Route:0x007f9040d13878&gt;
      #&lt;Grape::Router::Route:0x007f9040d13878&gt;
      #&lt;Grape::Router::Route:0x007f9040d13878&gt;
      ...
  </code></pre>
  
  <p>I want something like this.</p>
  
  <pre><code>    version=v1, method=GET, path=/services(.:format)
      version=v1, method=GET, path=/services/:id(.:format)
      ...
  </code></pre>
  
  <p>My grape implementation is below. This works well.</p>
  
  <pre><code>    module API
        class Root &lt; Grape::API
          version 'v1', using: :path
          format :json
  
          helpers Devise::Controllers::Helpers
  
          mount API::Admin::Services
        end
      end
  
  
  
      module API
        class Services &lt; Grape::API
          resources :services do
            resource ':service_id' do
              ...
            end
          end
        end
      end
  </code></pre>