openapi-generator/samples/server/petstore/sinatra/my_app.rb

14 lines
257 B
Ruby
Raw Normal View History

2015-06-18 18:11:08 +00:00
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'
2015-06-18 18:11:08 +00:00
end
end
2015-12-13 09:22:30 +00:00
# include the api files
Dir["./api/*.rb"].each { |file|
require file
}