Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs/cookbook/web/basics/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Create `hello-world` Socket and `hello` endpoint with simple response.
#### Create Hello World Socket

```sh
npx s create hello-world --template empty
npx s create hello-world
```

#### Create endpoint file
Expand Down Expand Up @@ -46,3 +46,17 @@ and call it using your browser or any other HTTP client:
```sh
curl https://bitter-sound-5197.syncano.space/hello-world/hello/
```

To check if the Socket works, call endpoint with firstname and lastname arguments.

```
https://bitter-sound-5197.syncano.space/hello-world/hello/?firstname=James&lastname=Smith
```

You should get an answer:

```
{
"message": "Hello James Smith!"
}
```