... | ... | @@ -8,8 +8,19 @@ curl http://localhost:9999 -X POST -d '{"command": "step", "nbStep": 10}' # tell |
|
|
curl http://localhost:9999 -X POST -d '{"command": "stop"}' # stop the model, stop listening for commands
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "free"}' # free the model to run until the end, stop listening for commands
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "info"}' # return model state
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "set", "key": "infiltration", "value": {"939": 10000} }'
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "get", "key": "hru"}' # get state of all HRUs
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "get", "key": "reach"}' # get state of all reachs
|
|
|
```
|
|
|
|
|
|
Valid keys for "set" command:
|
|
|
* infiltration (per HRU)
|
|
|
* aspersion (per HRU)
|
|
|
* drip (per HRU)
|
|
|
* surface (per HRU)
|
|
|
* reachin (per reach)
|
|
|
* reachout (per reach)
|
|
|
|
|
|
# En R
|
|
|
|
|
|
C'est le même protocole mais on envoie les requêtes HTTP différemment. |
|
|
\ No newline at end of file |