File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff 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
39395. ** 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
4763To build the Docker image:
You can’t perform that action at this time.
0 commit comments