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.display_applications

API operations on annotations.
import logging

from galaxy.managers.display_applications import DisplayApplicationsManager
from galaxy.web import (
from . import (

log = logging.getLogger(__name__)

[docs]class DisplayApplicationsController(BaseGalaxyAPIController): manager = depends(DisplayApplicationsManager)
[docs] @expose_api def index(self, trans, **kwd): """ GET /api/display_applications/ Returns the list of display applications. :returns: list of available display applications :rtype: list """ return self.manager.index()
[docs] @expose_api @require_admin def reload(self, trans, payload=None, **kwd): """ POST /api/display_applications/reload Reloads the list of display applications. :param ids: list containing ids of display to be reloaded :type ids: list """ payload = payload or {} ids = payload.get("ids", []) return self.manager.reload(ids)