Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
APMarte authored Mar 5, 2020
1 parent 2cf51ec commit caf19aa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,26 @@ To build image:
docker build -t docker-vegeta .
```

To run:
```bash
docker run -d -p 8000:80 --name vegeta vegeta:1.0
```

### Api Usage

Simple Request:
```bash
curl --location --request POST 'http://vegeta-server/api/v1/attack' \
--header 'Content-Type: application/json' \
--data-raw '{
"rate": 10,
"duration": "10s",
"target": {
"method": "GET",
"URL": "http://some.host./and/end/point",
"scheme": "http"
}
}
'
```
Documentation - [Vegeta](https://github.com/tsenart/vegeta) [RestApi](https://github.com/nitishm/vegeta-server/blob/master/docs/usage.md)

0 comments on commit caf19aa

Please sign in to comment.