Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
Source code for tool_shed.webapp.api.configuration
"""
API operations allowing clients to determine Tool Shed instance's
capabilities and configuration settings.
"""
import logging
from galaxy.web import expose_api_anonymous_and_sessionless
from galaxy.webapps.base.controller import BaseAPIController
log = logging.getLogger(__name__)
[docs]class ConfigurationController(BaseAPIController):
[docs] @expose_api_anonymous_and_sessionless
def version(self, trans, **kwds):
"""
GET /api/version
Return a description of the version_major and version of Galaxy Tool Shed
(e.g. 15.07 and 15.07.dev).
:rtype: dict
:returns: dictionary with versions keyed as 'version_major' and 'version'
"""
return {"version_major": self.app.config.version_major, "version": self.app.config.version}