Format docs
This commit is contained in:
parent
64e1deca92
commit
a215380cfa
1 changed files with 5 additions and 3 deletions
|
|
@ -16,14 +16,16 @@ MIX_ENV=prod mix build_release
|
|||
Then you can run 3 servers connected to one another:
|
||||
|
||||
`_build/prod/rel/birdy_chat/bin/server_1` - runs at localhost:4001
|
||||
|
||||
`_build/prod/rel/birdy_chat/bin/server_2` - runs at localhost:4002
|
||||
|
||||
`_build/prod/rel/birdy_chat/bin/server_3` - runs at localhost:4003
|
||||
|
||||
Out of the box they communicate with one another. Send a json request to one of them and observe the results. Feel free to modify the examples below.
|
||||
|
||||
### A local request:
|
||||
|
||||
```
|
||||
```sh
|
||||
curl --request POST \
|
||||
--url http://localhost:4001/api/messages \
|
||||
--header 'content-type: application/json' \
|
||||
|
|
@ -32,7 +34,7 @@ curl --request POST \
|
|||
|
||||
### A remote request:
|
||||
|
||||
```
|
||||
```sh
|
||||
curl --request POST \
|
||||
--url http://localhost:4001/api/messages \
|
||||
--header 'content-type: application/json' \
|
||||
|
|
@ -41,7 +43,7 @@ curl --request POST \
|
|||
|
||||
### A request to unknown server:
|
||||
|
||||
```
|
||||
```sh
|
||||
curl --request POST \
|
||||
--url http://localhost:4001/api/messages \
|
||||
--header 'content-type: application/json' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue