Sha256: d7014067c4a3bb2cd25eb2279386bc32148fe4950c624a9958bca31354a3c689

Contents?: true

Size: 565 Bytes

Versions: 3

Compression:

Stored size: 565 Bytes

Contents

require 'grape'
require 'grape-swagger'
require 'json'
Dir[File.expand_path('../**/*_api.rb', __FILE__)].each do |f|
    puts "Requiring #{f}"
  require f
end

module DummyServices
  class API < Grape::API
    prefix 'api'
    format :json
    mount DummyServices::Hello
    mount DummyServices::Ping
    mount DummyServices::Echo
    mount DummyServices::Files
    mount DummyServices::Reverse
    mount AlbumServices::Cover
    add_swagger_documentation # api_version: 'v1'
  end
end
DummyServices::API.routes.each do |route|
  p route
end
run DummyServices::API

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 sample_apis/config.ru
pacto-0.4.0.rc2 sample_apis/config.ru
pacto-0.4.0.rc1 sample_apis/config.ru