Class: OpenBEL::Routes::Language
- Defined in:
- app/openbel/api/routes/language.rb
Overview
Language defines and implements the /api/language routes to expose BEL functions, relationships, and version configured for the API.
Constant Summary collapse
- JSON =
Rack::Mime.mime_type('.json')
- TEXT =
Rack::Mime.mime_type('.txt')
- ACCEPTED_TYPES =
{'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
Instance Method Summary collapse
-
#initialize(app) ⇒ Language
constructor
A new instance of Language.