Skip to content

Commit 89901e6

Browse files
clemzarchJoMessina
andauthored
Apply suggestions from code review
Co-authored-by: Jonathan <99172532+JoMessina@users.noreply.github.com>
1 parent 23b9a87 commit 89901e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/core-concept/http-hook/_index.en.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Your HTTP Hook will serve the route set in the option `path`:
3737
version: '0.3'
3838
satellites:
3939
my_satellite:
40-
label: 'Example of an api'
40+
label: 'Example of a hook'
4141
filesystem:
4242
path: build
4343
composer:
@@ -56,7 +56,7 @@ satellites:
5656
- "php-etl/mapping-contracts"
5757
http_hook:
5858
name: 'My HTTP Hook' # Optional
59-
path: /my-api
59+
path: /my-hook
6060
expression: 'input'
6161
pipeline:
6262
steps:
@@ -77,7 +77,7 @@ After [building](../../getting-started/compilation) the satellite, start a serve
7777
bin/satellite run:hook build/
7878
```
7979

80-
You can then send POST requests containing the data be processed to `http://localhost:8000/my-api`
80+
You can then send POST requests containing the data be processed to `http://localhost:8000/my-hook`
8181

8282
```yaml
8383
# input:
@@ -105,7 +105,7 @@ test_2;862
105105
require:
106106
- "tuupola/slim-jwt-auth"
107107
# ...
108-
http_api:
108+
http_hook:
109109
authorization:
110110
jwt:
111111
secret: 'mysecret'
@@ -126,7 +126,7 @@ The string after "Bearer" is the token, generated from the secret phrase. This s
126126
require:
127127
- "tuupola/slim-basic-auth"
128128
# ...
129-
http_api:
129+
http_hook:
130130
authorization:
131131
basic:
132132
- user: john

0 commit comments

Comments
 (0)