Merge pull request #7 from GreenPenguino/update-examples

Update example scripts
This commit is contained in:
Erik van Bennekum 2023-04-18 11:17:18 +02:00 committed by GitHub
commit 2016130b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 26 deletions

1
.gitignore vendored
View File

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

View File

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

View File

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

View File

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