Initial commit

This commit is contained in:
github-classroom[bot]
2023-11-15 07:02:37 +00:00
committed by GitHub
commit 0e8d7b5d31
23 changed files with 1452 additions and 0 deletions

43
requests.sh Normal file
View File

@@ -0,0 +1,43 @@
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"