-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtutorial.sh
34 lines (32 loc) · 1.29 KB
/
tutorial.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
: ${PORT:=8888}
: ${ADDRESS:='http://localhost:'}
case "$1" in
"lift")
curl --location --request POST "${ADDRESS}${PORT}/chimera-demo/lift" --header 'Content-Type: application/zip' \
--data-binary '@inbox/sample-gtfs-feed.zip'
;;
"liftConstruct")
curl --location --request POST "${ADDRESS}${PORT}/chimera-demo/liftConstruct" --header 'Content-Type: application/zip' \
--data-binary '@inbox/sample-gtfs-feed.zip'
;;
"roundtrip")
curl --location --request POST "${ADDRESS}${PORT}/chimera-demo/roundtrip" --header 'Content-Type: application/zip' \
--data-binary '@inbox/sample-gtfs-feed.zip'
;;
"roundtripAdd")
curl --location --request POST "${ADDRESS}${PORT}/chimera-demo/roundtripAdd" --header 'Content-Type: application/zip' \
--data-binary '@inbox/sample-gtfs-feed.zip'
;;
"roundtripInference")
curl --location --request POST "${ADDRESS}${PORT}/chimera-demo/roundtripInference" --header 'Content-Type: application/zip' \
--data-binary '@inbox/sample-gtfs-feed.zip'
;;
"roundtripTemplate")
curl --location --request POST "${ADDRESS}${PORT}/chimera-demo/roundtripTemplate" --header 'Content-Type: application/zip' \
--data-binary '@inbox/sample-gtfs-feed.zip'
;;
*)
echo "Provide an argument specifying the tutorial step id."
;;
esac