-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
trace.sh
36 lines (27 loc) · 1.01 KB
/
trace.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
35
36
curl --request GET \
--url http://localhost:8080/ \
--header 'traceparent: 00-df853039b602c93e641526aaa7d67b8c-339f2b7a83c7d606-01'
curl --request POST \
--url http://localhost:8080/peanuts \
--header 'content-type: application/json' \
--data '{"name": "Snoopy", "description": "A cute beagle" }'
curl --request POST \
--url http://localhost:8080/peanuts \
--header 'content-type: application/json' \
--data '{"name": "Woodstock", "description": "A cute bird" }'
curl --request POST \
--url http://localhost:8080/peanuts \
--header 'content-type: application/json' \
--data '{"name": "Charlie Brown","description": "Snoopy'\''s owner"}'
curl --request GET \
--url http://localhost:8080/peanuts/1
curl --request GET \
--url http://localhost:8080/peanuts/1
curl --request GET \
--url http://localhost:8080/peanuts/2
curl --request GET \
--url http://localhost:8080/peanuts/2
curl --request GET \
--url http://localhost:8080/peanuts/3
curl --request GET \
--url http://localhost:8080/peanuts/3