Sha256: cc569afd0532a3dc4a3a0748fb192d1a36914fba2a31056401465cdf8a025c16
Contents?: true
Size: 899 Bytes
Versions: 2
Compression:
Stored size: 899 Bytes
Contents
module Swagger module V1 class Root < ::Apress::Documentation::Swagger::Schema swagger_root do key :swagger, '2.0' info do key :version, Rails.application.config.api[:version] key :title, Rails.application.config.api[:title] key :description, Rails.application.config.api[:description] key :termsOfService, Rails.application.config.api[:terms_of_service] contact do key :name, Rails.application.config.api[:contact_name] end end key :basePath, Rails.application.config.api[:base_path] key :produces, ['application/json'] security_definition :APIAuth do key :type, :apiKey key :in, :header key :name, 'Authorization' key :description, 'Authentication by access_id token based on HMAC' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apress-api-1.24.0 | app/docs/swagger/v1/root.rb |
apress-api-1.23.0 | app/docs/swagger/v1/root.rb |