Class: OpenBEL::Routes::Base
- Inherits:
-
Sinatra::Application
- Object
- Sinatra::Application
- OpenBEL::Routes::Base
- Includes:
- OpenBEL::Resource::Annotations, OpenBEL::Resource::Expressions, OpenBEL::Resource::Functions, OpenBEL::Resource::MatchResults, OpenBEL::Resource::Namespaces, OpenBEL::Resource::Nanopub, OpenBEL::Resource::Relationships, Schemas
- Defined in:
- app/openbel/api/routes/base.rb
Direct Known Subclasses
Annotations, Authenticate, Datasets, Expressions, Language, Namespaces, Nanopubs, Root, Version
Constant Summary collapse
- DEFAULT_CONTENT_TYPE =
'application/hal+json'
- DEFAULT_CONTENT_TYPE_ID =
:hal
- SPOKEN_CONTENT_TYPES =
%w[application/hal+json application/json]
- SCHEMA_BASE_URL =
'http://next.belframework.org/schemas/'
- RESOURCE_SERIALIZERS =
{ :annotation => AnnotationResourceSerializer, :annotation_collection => AnnotationCollectionSerializer, :annotation_value => AnnotationValueResourceSerializer, :completion => CompletionResourceSerializer, :completion_collection => CompletionCollectionSerializer, :function => FunctionResourceSerializer, :function_collection => FunctionCollectionSerializer, :relationship => RelationshipResourceSerializer, :relationship_collection => RelationshipCollectionSerializer, :match_result => MatchResultResourceSerializer, :match_result_collection => MatchResultCollectionSerializer, :namespace => NamespaceResourceSerializer, :namespace_collection => NamespaceCollectionSerializer, :namespace_value => NamespaceValueResourceSerializer, :namespace_value_collection => NamespaceValueCollectionSerializer, :nanopub => NanopubSerializer, :nanopub_resource => NanopubResourceSerializer, :nanopub_collection => NanopubCollectionSerializer }
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