-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcurl
executable file
·28 lines (28 loc) · 1.24 KB
/
curl
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
#!/bin/sh
. ./.env
# curl -v "$NET_HOST:$API_PORT" | jq
curl -v -G \
-d 'by=month' \
-d 'author_email=gubasso@eambar.net' \
"$NET_HOST:$API_PORT"/count | jq
# curl -v -X POST -H "Content-Type: application/json" -d @"./samples/message.json" 127.0.0.1:3000/mirror_body_json
# curl -v -H "Content-Type: application/json" -d @"./samples/message.json" 127.0.0.1:3000/mirror_body_json
# curl 127.0.0.1:3000/path_variables/3452342
# echo ""
# curl 127.0.0.1:3000/path_variables/69
# echo ""
# curl 127.0.0.1:3000/path_variables/myeggs
# curl -v "127.0.0.1:3000/query_params?id=3&name=$(urlencode 'Guga Boy')&message=$(urlencode 'Hello People!')"
# curl -v 127.0.0.1:3000/get_json
# curl -v -H "Content-Type: application/json" -d @"./samples/val_data.json" 127.0.0.1:3000/validate_data
# curl -v -X POST -H "Content-Type: application/json" -d @"./samples/create_task.json" 127.0.0.1:3000/tasks
# curl 127.0.0.1:3000/tasks | jq | bat -l json
# curl -v -G -d 'priority=A' 127.0.0.1:3000/tasks
# curl -G -d 'priority=NULL' 127.0.0.1:3000/tasks | jq | bat -l json
# curl -G -d 'by=day' 127.0.0.1:3000/count
# curl -v 127.0.0.1:3000
# curl -v -G \
# -d 'by=month' \
# -d 'author_email=gubasso@cwnt.io' \
# -d 'repo=gubasso/ripissue' \
# 127.0.0.1:3000/count