Add new and delete curl scripts

This commit is contained in:
Erik 2023-03-14 15:19:34 +01:00
parent 014c6df8f5
commit dd2f26fe2b
2 changed files with 21 additions and 0 deletions

9
delete.sh Executable file
View File

@ -0,0 +1,9 @@
curl --header "Content-Type: application/json" \
--data '{"command": {
"Delete": {
"id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
}
},
"signature": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
}' \
http://localhost:3000/command

12
new.sh Executable file
View File

@ -0,0 +1,12 @@
curl --header "Content-Type: application/json" \
--data '{"command": {
"New": {
"incoming_port": 5555,
"destination_port": 8080,
"destination_ip": "127.0.0.1",
"id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
}
},
"signature": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
}' \
http://localhost:3000/command