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
|
# Added by cargo
|
||||||
|
|
||||||
/target
|
/target
|
||||||
|
.vscode/
|
||||||
|
18
create.sh
18
create.sh
@ -1,12 +1,10 @@
|
|||||||
curl --header "Content-Type: application/json" \
|
curl --header "Content-Type: application/json" \
|
||||||
--data '{"command": {
|
--data '{
|
||||||
"Create": {
|
"create": {
|
||||||
"incoming_port": 5555,
|
"incoming_port": 5555,
|
||||||
"destination_port": 8080,
|
"destination_port": 8080,
|
||||||
"destination_ip": "127.0.0.1",
|
"destination_ip": "127.0.0.1",
|
||||||
"id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
|
"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
|
http://localhost:3000/command
|
||||||
|
12
delete.sh
12
delete.sh
@ -1,9 +1,7 @@
|
|||||||
curl --header "Content-Type: application/json" \
|
curl --header "Content-Type: application/json" \
|
||||||
--data '{"command": {
|
--data '{
|
||||||
"Delete": {
|
"delete": {
|
||||||
"id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
|
"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
|
http://localhost:3000/command
|
||||||
|
16
modify.sh
16
modify.sh
@ -1,11 +1,9 @@
|
|||||||
curl --header "Content-Type: application/json" \
|
curl --header "Content-Type: application/json" \
|
||||||
--data '{"command": {
|
--data '{
|
||||||
"Modify": {
|
"modify": {
|
||||||
"destination_port": 8888,
|
"destination_port": 8888,
|
||||||
"destination_ip": "127.0.0.1",
|
"destination_ip": "127.0.0.1",
|
||||||
"id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
|
"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
|
http://localhost:3000/command
|
||||||
|
Loading…
Reference in New Issue
Block a user