Skip to content

Instantly share code, notes, and snippets.

@ukchukx
Created January 21, 2020 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukchukx/81dbe1bcced84f4e5eee204d589f665a to your computer and use it in GitHub Desktop.
Save ukchukx/81dbe1bcced84f4e5eee204d589f665a to your computer and use it in GitHub Desktop.
$ curl -i -X POST --url http://localhost:8001/services/ --data 'name=kc-chat-backend' \
--data 'url=http://172.19.0.4' --data 'port=10000'
# Sample output
HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
Server: kong/1.4.3
Content-Length: 295
X-Kong-Admin-Latency: 48
{
"host": "172.19.0.4",
"created_at": 1579439597,
"connect_timeout": 60000,
"id": "91e5cec5-abee-4b6c-b07c-11643a1678af",
"protocol": "http",
"name": "kc-chat-backend",
"read_timeout": 60000,
"port": 10000,
"path": null,
"updated_at": 1579439597,
"retries": 5,
"write_timeout": 60000,
"tags": null,
"client_certificate": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment