Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/galaxy/webapps/galaxy/controllers/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ def default(self, trans, dataset_id=None, **kwd):
return "This link may not be followed from within Galaxy."

@web.expose_api_raw_anonymous_and_sessionless
def get_metadata_file(self, trans, hda_id, metadata_name, **kwd):
def get_metadata_file(self, trans, hda_id=None, metadata_name=None, **kwd):
"""Allows the downloading of metadata files associated with datasets (eg. bai index for bam files)"""
if hda_id is None or metadata_name is None:
raise RequestParameterInvalidException("Required parameters 'hda_id' and 'metadata_name' are missing.")
# Backward compatibility with legacy links, should use `/api/datasets/{hda_id}/get_metadata_file` instead
fh, headers = self.service.get_metadata_file(
trans, history_content_id=self.decode_id(hda_id), metadata_file=metadata_name, open_file=True
Expand Down
Loading