Skip to content

Commit

Permalink
Update allocator-service.md (#2392)
Browse files Browse the repository at this point in the history
bring the cURL statement in a human readable form like the `go run...`example
  • Loading branch information
freegroup committed Dec 10, 2021
1 parent 6473df0 commit 4ccc328
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions site/content/en/docs/Advanced/allocator-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,19 @@ go run examples/allocator-client/main.go --ip ${EXTERNAL_IP} \
```bash
#!/bin/bash

curl --key ${KEY_FILE} --cert ${CERT_FILE} --cacert ${TLS_CA_FILE} -H "Content-Type: application/json" --data '{"namespace":"'${NAMESPACE}'"}' https://${EXTERNAL_IP}/gameserverallocation -XPOST
curl --key ${KEY_FILE} \
--cert ${CERT_FILE} \
--cacert ${TLS_CA_FILE} \
-H "Content-Type: application/json" \
--data '{"namespace":"'${NAMESPACE}'"}' \
https://${EXTERNAL_IP}/gameserverallocation \
-X POST

```

You should expect to see the following output:

```
```json
{"gameServerName":"game-server-name","ports":[{"name":"default","port":7463}],"address":"1.2.3.4","nodeName":"node-name"}
```

Expand Down

0 comments on commit 4ccc328

Please sign in to comment.