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
from galaxy.web import expose_api
from galaxy.workflow.trs_proxy import TrsProxy
from . import (

[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)