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 galaxy.webapps.galaxy.api.trs_consumer

"""Proxy requests to GA4GH TRS servers (e.g. Dockstore).

Information on TRS can be found at https://github.com/ga4gh/tool-registry-service-schemas.
"""
from galaxy.web import expose_api
from galaxy.workflow.trs_proxy import TrsProxy
from . import BaseGalaxyAPIController, depends


[docs]class TrsConsumeAPIController(BaseGalaxyAPIController): """Controller for TRS proxying.""" _trs_proxy: TrsProxy = depends(TrsProxy)
[docs] @expose_api def get_servers(self, trans, *args, **kwd): return self._trs_proxy.get_servers()
[docs] @expose_api def get_tool(self, trans, *args, **kwd): return self._trs_proxy.get_tool(*args, **kwd)
[docs] @expose_api def get_versions(self, trans, *args, **kwd): return self._trs_proxy.get_versions(*args, **kwd)
[docs] @expose_api def get_version(self, trans, *args, **kwd): return self._trs_proxy.get_version(*args, **kwd)