Skip to content

Commit fdb1dc3

Browse files
committed
fix examples
1 parent 881c8e6 commit fdb1dc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Test it via:
167167
# export rc file
168168
export $(cat "$XDG_CONFIG_HOME/api_guard/api_guard.rc" | grep -v '^#' | xargs)
169169
# run a simple request in another shell:
170-
curl http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
170+
curl -H "Authorization: Bearer $API_GUARD_KEY" http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
171171
```
172172

173173
### Running the Service in Production
@@ -194,7 +194,7 @@ Test it via:
194194
# export api_guard.rc file
195195
export $(cat "$XDG_CONFIG_HOME/api_guard/api_guard.rc" | grep -v '^#' | xargs)
196196
# run a simple request
197-
curl http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
197+
curl -H "Authorization: Bearer $API_GUARD_KEY" http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
198198
```
199199

200200
### Running the Service via Docker Container
@@ -228,7 +228,7 @@ curl http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
228228
# export api_guard.rc file
229229
export $(cat "$XDG_CONFIG_HOME/api_guard/api_guard.rc" | grep -v '^#' | xargs)
230230
# run a simple request
231-
curl http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
231+
curl -H "Authorization: Bearer $API_GUARD_KEY" http://127.0.0.1:${APIGUARD_PORT}${APIGUARD_SLUG}/request_access
232232
```
233233
### Furhat Kotlin Client Example
234234

0 commit comments

Comments
 (0)