Update example scripts
This commit is contained in:
parent
31e753311e
commit
c177358b35
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ Cargo.lock
|
||||
# Added by cargo
|
||||
|
||||
/target
|
||||
.vscode/
|
||||
|
@ -1,12 +1,10 @@
|
||||
curl --header "Content-Type: application/json" \
|
||||
--data '{"command": {
|
||||
"Create": {
|
||||
--data '{
|
||||
"create": {
|
||||
"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
|
||||
|
@ -1,9 +1,7 @@
|
||||
curl --header "Content-Type: application/json" \
|
||||
--data '{"command": {
|
||||
"Delete": {
|
||||
--data '{
|
||||
"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
|
||||
|
@ -1,11 +1,9 @@
|
||||
curl --header "Content-Type: application/json" \
|
||||
--data '{"command": {
|
||||
"Modify": {
|
||||
--data '{
|
||||
"modify": {
|
||||
"destination_port": 8888,
|
||||
"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