浏览代码

update rest api doc

nico 7 年之前
父节点
当前提交
7524a5ed31
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Docs/rest_api.md

+ 8 - 0
Docs/rest_api.md

@@ -154,6 +154,14 @@ curl -i -H "Content-Type: application/json" --user admin:secret -X POST \
 -d '{"no_voice":"true"}' http://127.0.0.1:5000/synapses/start/id/say-hello-fr
 ```
 
+Some neuron inside a synapse will wait for parameters that comes from the order. 
+You can provide those parameters by adding a `parameters` list of data.
+Curl command:
+```bash
+curl -i -H "Content-Type: application/json" --user admin:secret -X POST  \
+-d '{"parameters": {"parameter1": "value1" }}' \
+http://127.0.0.1:5000/synapses/start/id/synapse-id
+```
 
 ### Run a synapse from an order