-
Notifications
You must be signed in to change notification settings - Fork 8
/
generate_stubs.sh
executable file
·22 lines (20 loc) · 1.04 KB
/
generate_stubs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
#CURL --silent --header "Content-Type: application/json" -X POST \
# --data '{"size":2}' \
# "https://api.vortexa.com/v5/reference/charterers?apikey=${VORTEXA_API_KEY}" | jq ".data" \
# > ../tests/api/examples/corporations.json
#
#CURL --silent --header "Content-Type: application/json" -X POST \
# --data '{"size":2}' \
# "https://api.vortexa.com/v5/reference/vessels?apikey=${VORTEXA_API_KEY}" | jq ".data" \
# > ../tests/api/examples/vessels.json
#
#CURL --silent --header "Content-Type: application/json" -X POST \
# --data '{"size":2}' \
# "https://api.vortexa.com/v5/reference/products?apikey=${VORTEXA_API_KEY}" | jq ".data" \
# > ../tests/api/examples/products.json
CURL --header "Content-Type: application/json" -X POST \
--data '{"filter_time_max":"2017-11-21T23:59:59.999Z","filter_time_min":"2017-11-21T00:00:00.000Z","unit":"b","size":2}' \
"https://api.vortexa.com/v5/vessel-movements/search?apikey=${VORTEXA_API_KEY}" \
| jq ".data" \
> ../tests/api/examples/vessel_movements.json