2016-01-31 09:08:47 +00:00
|
|
|
=begin
|
|
|
|
Swagger Petstore
|
|
|
|
|
2016-04-13 14:20:38 +00:00
|
|
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose.
|
2016-01-31 09:08:47 +00:00
|
|
|
|
|
|
|
OpenAPI spec version: 1.0.0
|
|
|
|
Contact: apiteam@swagger.io
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
|
|
|
|
|
|
License: Apache 2.0
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
|
|
|
|
Terms of Service: http://swagger.io/terms/
|
|
|
|
|
|
|
|
=end
|
|
|
|
|
2015-07-22 07:39:48 +00:00
|
|
|
# Common files
|
|
|
|
require 'petstore/api_client'
|
|
|
|
require 'petstore/api_error'
|
|
|
|
require 'petstore/version'
|
2015-08-14 08:19:43 +00:00
|
|
|
require 'petstore/configuration'
|
2015-06-26 09:15:14 +00:00
|
|
|
|
|
|
|
# Models
|
2016-03-30 12:58:18 +00:00
|
|
|
require 'petstore/models/animal'
|
2016-04-13 14:20:38 +00:00
|
|
|
require 'petstore/models/api_response'
|
2016-03-30 12:58:18 +00:00
|
|
|
require 'petstore/models/cat'
|
2015-06-26 09:15:14 +00:00
|
|
|
require 'petstore/models/category'
|
2016-03-30 12:58:18 +00:00
|
|
|
require 'petstore/models/dog'
|
2016-04-11 11:37:56 +00:00
|
|
|
require 'petstore/models/format_test'
|
2016-03-17 03:49:06 +00:00
|
|
|
require 'petstore/models/model_200_response'
|
2016-03-09 09:18:15 +00:00
|
|
|
require 'petstore/models/model_return'
|
2016-03-12 09:28:38 +00:00
|
|
|
require 'petstore/models/name'
|
2016-03-09 09:18:15 +00:00
|
|
|
require 'petstore/models/order'
|
2016-03-03 12:36:15 +00:00
|
|
|
require 'petstore/models/pet'
|
2016-03-09 09:18:15 +00:00
|
|
|
require 'petstore/models/special_model_name'
|
|
|
|
require 'petstore/models/tag'
|
|
|
|
require 'petstore/models/user'
|
2015-06-26 09:15:14 +00:00
|
|
|
|
|
|
|
# APIs
|
2016-03-03 12:36:15 +00:00
|
|
|
require 'petstore/api/pet_api'
|
2016-03-09 09:18:15 +00:00
|
|
|
require 'petstore/api/store_api'
|
|
|
|
require 'petstore/api/user_api'
|
2015-06-26 09:15:14 +00:00
|
|
|
|
|
|
|
module Petstore
|
2015-08-14 08:19:43 +00:00
|
|
|
class << self
|
2015-12-10 07:25:07 +00:00
|
|
|
# Customize default settings for the SDK using block.
|
|
|
|
# Petstore.configure do |config|
|
|
|
|
# config.username = "xxx"
|
|
|
|
# config.password = "xxx"
|
|
|
|
# end
|
|
|
|
# If no block given, return the default Configuration object.
|
2015-08-14 08:19:43 +00:00
|
|
|
def configure
|
|
|
|
if block_given?
|
2015-12-10 07:25:07 +00:00
|
|
|
yield(Configuration.default)
|
2015-08-14 08:19:43 +00:00
|
|
|
else
|
2015-12-10 07:25:07 +00:00
|
|
|
Configuration.default
|
2015-08-14 08:19:43 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2015-06-26 09:15:14 +00:00
|
|
|
end
|