diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-14 14:07:21 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:02 +0200 |
| commit | f604406453f95c82c3e5e4294a51245661868bbe (patch) | |
| tree | 6282cc3eb3164ddd94052175f872c8fc2ee2f623 /src/api | |
| parent | 7151ae60cf587a502a7e09d19ebd0fd33e761bf2 (diff) | |
First attempt at experiment list UI
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/routes/jobs.js | 9 | ||||
| -rw-r--r-- | src/api/routes/tasks.js | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/api/routes/jobs.js b/src/api/routes/jobs.js new file mode 100644 index 00000000..90947a51 --- /dev/null +++ b/src/api/routes/jobs.js @@ -0,0 +1,9 @@ +import {getAll, getById} from "./util"; + +export function getAllJobs() { + return getAll("/jobs"); +} + +export function getTasksOfJob(jobId) { + return getById("/jobs/{jobId}/tasks", {jobId}); +} diff --git a/src/api/routes/tasks.js b/src/api/routes/tasks.js new file mode 100644 index 00000000..69736af8 --- /dev/null +++ b/src/api/routes/tasks.js @@ -0,0 +1,5 @@ +import {getAll} from "./util"; + +export function getAllTasks() { + return getAll("/tasks"); +} |
