Initial commit
This commit is contained in:
43
requests.sh
Normal file
43
requests.sh
Normal 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"
|
||||
Reference in New Issue
Block a user