openapi-generator/samples/server/petstore/sinatra/my_app.rb
2015-12-13 17:22:30 +08:00

14 lines
257 B
Ruby

require './lib/swaggering'
# only need to extend if you want special configuration!
class MyApp < Swaggering
self.configure do |config|
config.api_version = '1.0.0'
end
end
# include the api files
Dir["./api/*.rb"].each { |file|
require file
}