Skip to content

Commit 571bdc2

Browse files
LucasRoesleralexellis
authored andcommitted
Add example invoke command to test the function
**What** - Add an example invoke to the Reference/secrets.md Signed-off-by: Lucas Roesler <[email protected]>
1 parent 2310b00 commit 571bdc2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/reference/secrets.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,9 @@ This is the simplest part, update your stack file to include the secret:
5757
```
5858

5959
and then deploy `faas-cli deploy -f ./stack.yaml`
60+
61+
Once the deploy is done you can test the function using
62+
63+
```sh
64+
faas-cli invoke protectedapi -H "X-Api-Key=R^YqzKzSJw51K9zPpQ3R3N"
65+
```

0 commit comments

Comments
 (0)