From c655d361966c9784e403d60e1cd2e9b7d06fa66c Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 8 Nov 2023 09:56:46 -0500 Subject: [PATCH] explicitly specify operation so tool_panels are included in apispec & doc --- lib/galaxy/webapps/galaxy/buildapp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/buildapp.py b/lib/galaxy/webapps/galaxy/buildapp.py index 6dcd4c291613..5048abcc36c8 100644 --- a/lib/galaxy/webapps/galaxy/buildapp.py +++ b/lib/galaxy/webapps/galaxy/buildapp.py @@ -367,8 +367,10 @@ def populate_api_routes(webapp, app): # ====== TOOLS API ====== # ======================= - webapp.mapper.connect("/api/tool_panels", action="panel_views", controller="tools") - webapp.mapper.connect("/api/tool_panels/{view}", action="panel_view", controller="tools") + webapp.mapper.connect("/api/tool_panels", action="panel_views", controller="tools", conditions=dict(method=["GET"])) + webapp.mapper.connect( + "/api/tool_panels/{view}", action="panel_view", controller="tools", conditions=dict(method=["GET"]) + ) webapp.mapper.connect("/api/tools/all_requirements", action="all_requirements", controller="tools") webapp.mapper.connect("/api/tools/error_stack", action="error_stack", controller="tools")