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

44 lines
1.6 KiB
Bash
Raw Permalink Normal View History

2023-11-15 07:02:37 +00:00
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"