Skip to content

Commit 747064a

Browse files
committed
More curl examples
1 parent 224f33e commit 747064a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,27 @@ This is a Flask-based backend API that runs the Flex Net Sim C++ library.
3737
The backend will be accessible at `http://127.0.0.1:5000`.
3838

3939
5. **Send simulation requests using `curl` or a frontend application:**
40-
Example `curl` request:
40+
Example `curl` request with minimal parameters (defaults applied):
4141
```bash
4242
curl -X POST -H "Content-Type: application/json" -d '{"algorithm": "FirstFit", "networkType": 1, "bitrate": "bitrate"}' [http://127.0.0.1:5000/run_simulation](http://127.0.0.1:5000/run_simulation)
4343
```
4444

45+
Example `curl` request with all parameters specified
46+
```bash
47+
curl -X POST -H "Content-Type: application/json" \
48+
-d '{
49+
"algorithm": "BestFit",
50+
"networkType": 2,
51+
"goal_connections": 50000,
52+
"confidence": 0.01,
53+
"lambda": 1.5,
54+
"mu": 8,
55+
"network": "USNet",
56+
"bitrate": "100Gbps"
57+
}' \
58+
http://127.0.0.1:5000/run_simulation
59+
```
60+
4561
## Dockerization
4662

4763
To build the Docker image:

0 commit comments

Comments
 (0)