lib/apia/api.rb
# Return the schema hash for this API
#
# @param host [String]
# @param namespace [String]
# @return [Hash]
Return the schema hash for this API
Return the schema hash for this API
def schema(host:, namespace:)
        require 'apia/schema/controller'
        Schema::Controller.definition.endpoints[:schema].definition.fields.generate_hash({
          schema_version: 1,
          host: host,
          namespace: namespace,
          api: definition.id,
          objects: objects.map(&:definition).select(&:schema?)
        })
      end
def schema ( host : , namespace : ) require 'apia/schema/controller' Schema :: Controller . definition . endpoints [ :schema ] . definition . fields . generate_hash ( { schema_version : 1 , host : host , namespace : namespace , api : definition . id , objects : objects . map ( & :definition ) . select ( & :schema? ) } ) end
Return the schema hash for this API
Return the schema hash for this API
None
Hash
host
<not_specific>
namespace
<not_specific>
<not_specific>
None