Sha256: fd308a469737ee53cd4209e3e4f75a434a8873e78597235f315758cbcc7357b9
Contents?: true
Size: 929 Bytes
Versions: 1
Compression:
Stored size: 929 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apress-api-1.24.2 | app/docs/swagger/v1/root.rb |