Skip to content

Commit

Permalink
doc: API fields added
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Nov 30, 2023
1 parent 9627675 commit 133cae5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Please note that all the endpoints have to be prefixed with `/api/v1`.
- **Endpoint:** `/packetloss`
- `/start`
- **Method:** POST
- **Data**: `{"network_interface":"eth0","packet_loss_rate":30}`
- **Description:** Start packetloss service.
- `/status`
- **Method:** GET
Expand All @@ -88,6 +89,7 @@ curl -iX POST http://localhost:9007/api/v1/packetloss/start --data '{"network_in
- **Endpoint:** `/bandwidth`
- `/start`
- **Method:** POST
- **Data**: `{"network_interface":"eth0","bandwidth":1048576}`
- **Description:** Start bandwidth service.
- `/status`
- **Method:** GET
Expand All @@ -101,6 +103,7 @@ curl -iX POST http://localhost:9007/api/v1/packetloss/start --data '{"network_in
- **Endpoint:** `/latency`
- `/start`
- **Method:** POST
- **Data**: `{"network_interface":"eth0","latency":100,"jitter":10}`
- **Description:** Start latency service.
- `/status`
- **Method:** GET
Expand Down

0 comments on commit 133cae5

Please sign in to comment.