Skip to content

Commit

Permalink
Add usage examples to README
Browse files Browse the repository at this point in the history
Added examples showing how to use the service using curl. The examples include both direct JSON input and the use of a JSON file.
  • Loading branch information
PiotrFerenc committed May 9, 2024
1 parent 841e2c8 commit d2ce48e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,40 @@ make docker-rebuild

## Usage

```shell
curl -X POST localhost:5000/execute -H "Content-Type: application/json" -d '{
"Parameters": {
"console.text": "hallo word"
},
"Tasks": [
{
"Sequence": 1,
"Name": "log",
"Action": "console"
}
]
}'
```

or
```shell

echo '{
"Parameters": {
"console.text": "hallo word"
},
"Tasks": [
{
"Sequence": 1,
"Name": "log",
"Action": "console"
}
]
}' > request.json

curl -X POST localhost:5000/execute -H "Content-Type: application/json" -d @request.json
```

## Actions


Expand Down

0 comments on commit d2ce48e

Please sign in to comment.