File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,15 +199,22 @@ $ fn config app flows-example COMPLETER_BASE_URL "http://$DOCKER_LOCALHOST:8081"
199199
200200### Run your Flow function
201201
202- You can now run your function using ` fn call ` or HTTP and curl:
202+ You can now run your function using ` fn invoke ` or HTTP.
203203
204204```
205- $ echo 10 | fn call flows-example / primes
205+ $ echo 10 | fn invoke flows-example primes
206206The 10th prime number is 29
207207```
208208
209+ To invoke your function via HTTP, you need to know its invocation endpoint (or the function needs to have an HTTP trigger defined).
210+
211+ ```
212+ $ fn inspect fn flows-examples primes
209213```
210- $ curl -XPOST -d "10" http://localhost:8080/r/flows-example/primes
214+
215+ Take note of the ` fnproject.io/fn/invokeEndpoint ` URL and invoke it (ex. using curl).
216+
217+ $ curl -X POST -d "10" http://localhost:8080/invoke/ ...
211218The 10th prime number is 29
212219```
213220
You can’t perform that action at this time.
0 commit comments