Update example scripts

This commit is contained in:
Erik 2023-04-18 11:08:54 +02:00
parent 31e753311e
commit c177358b35
4 changed files with 21 additions and 26 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ Cargo.lock
# Added by cargo
/target
.vscode/

View File

@ -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

View File

@ -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

View File

@ -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