This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SDi-Servlet/requests.sh
github-classroom[bot] 0e8d7b5d31
Initial commit
2023-11-15 07:02:37 +00:00

44 lines
1.6 KiB
Bash

curl -X GET --location "http://localhost:8080/things" \
-H "Accept: application/json"
curl -X POST --location "http://localhost:8080/things?type=THING&name=thing3" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
curl -X GET --location "http://localhost:8080/things/thing3" \
-H "Accept: application/json"
curl -X DELETE --location "http://localhost:8080/things/thing1"
curl -X POST --location "http://localhost:8080/things/thing3?type=INPUT&name=input1" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
curl -X POST --location "http://localhost:8080/things/thing3?type=INPUT&name=input2" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
curl -X GET --location "http://localhost:8080/things/thing3/input2" \
-H "Accept: application/json"
curl -X DELETE --location "http://localhost:8080/things/thing3/input2"
curl -X POST --location "http://localhost:8080/things/thing3?type=OUTPUT&name=output1" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
curl -X POST --location "http://localhost:8080/things/thing3?type=OUTPUT&name=output2" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
curl -X GET --location "http://localhost:8080/things/thing3/output2" \
-H "Accept: application/json"
curl -X PUT --location "http://localhost:8080/things/thing3/output2" \
-H "Content-Type: application/json"
curl -X GET --location "http://localhost:8080/things/thing3/output2" \
-H "Accept: application/json"
curl -X DELETE --location "http://localhost:8080/things/thing3/output2"