Add new and delete curl scripts
This commit is contained in:
parent
014c6df8f5
commit
dd2f26fe2b
9
delete.sh
Executable file
9
delete.sh
Executable 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
12
new.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user