From 9938b9bba799f257ffb557cb19d9b3f794fbbec7 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Mon, 15 Aug 2016 14:05:39 +0100 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a75f25c..d89283e 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,20 @@ configured. To start an echo service: "Rooms": ["!QkdpvTwGlrptdeViJx:localhost:8448"] } } + +To retrieve an existing Service: + + curl -X POST localhost:4050/admin/getService --data-binary '{ + "Id": "myserviceid" + }' + { + "Type": "echo", + "Id": "myserviceid", + "Config": { + "UserID": "@goneb:localhost:8448", + "Rooms": ["!QkdpvTwGlrptdeViJx:localhost:8448"] + } + } Go-neb has a heartbeat listener that returns 200 OK so that load balancers can check that the server is still running. @@ -245,11 +259,14 @@ curl -X POST localhost:4050/admin/configureService --data-binary '{ "ClientUserID": "@example:localhost", "Rooms": { "!EmwxeXCVubhskuWvaw:localhost": { - "RealmID": "jirarealm", - "Projects": { - "BOTS": { - "Expand": true, - "Track": true + "Realms": { + "jira_realm_id": { + "Projects": { + "BOTS": { + "Expand": true, + "Track": true + } + } } } }