Files
galaxy/client/src/components/WorkflowInvocationState/services.js
T
2020-08-11 10:26:05 -04:00

15 lines
439 B
JavaScript

import { getRootFromIndexLink } from "onload";
import axios from "axios";
const getUrl = (path) => getRootFromIndexLink() + path;
export function getInvocationJobsSummary(invocationId) {
const url = getUrl(`api/invocations/${invocationId}/jobs_summary`);
return axios.get(url);
}
export function cancelWorkflowScheduling(invocationId) {
const url = getUrl(`api/invocations/${invocationId}`);
return axios.delete(url);
}