Class: OpenBEL::Routes::Version

Inherits:
Base
  • Object
show all
Defined in:
app/openbel/api/routes/version.rb

Overview

Version defines and implements the /api/version route that exposes the semantic version of the OpenBEL API.

Constant Summary collapse

JSON =
Rack::Mime.mime_type('.json')
HAL =
'application/hal+json'
TEXT =
Rack::Mime.mime_type('.txt')
ACCEPTED_TYPES =
{
  'hal'  => HAL,
  'json' => JSON,
  'text' => TEXT
}
DEFAULT_TYPE =
TEXT

Constants inherited from Base

Base::DEFAULT_CONTENT_TYPE, Base::DEFAULT_CONTENT_TYPE_ID, Base::RESOURCE_SERIALIZERS, Base::SCHEMA_BASE_URL, Base::SPOKEN_CONTENT_TYPES

Constants included from Schemas

Schemas::COMPILED_SCHEMAS, Schemas::SCHEMA_DIR, Schemas::SUFFIX

Constants included from OpenBEL::Resource::Namespaces

OpenBEL::Resource::Namespaces::VOCABULARY_RDF

Constants included from OpenBEL::Resource::Annotations

OpenBEL::Resource::Annotations::VOCABULARY_RDF

Method Summary

Methods included from Schemas

#validate