diff options
author | VENKATESH KUMAR <vv770d@att.com> | 2017-08-22 17:42:43 -0400 |
---|---|---|
committer | VENKATESH KUMAR <vv770d@att.com> | 2017-08-22 17:44:46 -0400 |
commit | 7506eae7723fc4e8c1bd7952fe93c4924ea29cda (patch) | |
tree | 0a52a0f32cbd896c8149b64fa981630ab64393c7 /resources/consulhelp.txt | |
parent | a30008bfaac90f9acc068dda471552fc68cb98cc (diff) |
[CCSDK-36] seedcode for northbound api
Change-Id: If48afb138dbab2fb1eed4d3591f02524489e994e
Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
Diffstat (limited to 'resources/consulhelp.txt')
-rw-r--r-- | resources/consulhelp.txt | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/resources/consulhelp.txt b/resources/consulhelp.txt new file mode 100644 index 0000000..4333255 --- /dev/null +++ b/resources/consulhelp.txt @@ -0,0 +1,89 @@ +{ + "items": [ + { + "Description": "Get all the services", + "request": { + "endpoint": "/healthservices/services", + "method": "GET" + } + }, + { + "Description": "Get all the nodes", + "request": { + "endpoint": "/healthservices/nodes", + "method": "GET" + } + }, + { + "Description": "Get all the datacenters", + "request": { + "endpoint": "/healthservices/datacenters", + "method": "GET" + } + }, + { + "Description": "Get all the health checks for the service", + "request": { + "endpoint": "/healthservices/services/<service_name>", + "method": "GET" + } + }, + { + "Description": "Get all the health checks for the nodes", + "request": { + "endpoint": "/healthservices/nodes/<node_name>", + "method": "GET" + } + }, + { + "Description": "Register a new service", + "request": { + "endpoint": "/healthservices/register", + "method": "POST", + "requestBodyType": "JSON", + "requestBody": { + "services": [ + { + "id": "<service_id>", + "name": "<service_name>", + "tags": [ + + ], + "address": "<service_address>", + "port": "<service_port>", + "checks": [ + { + "endpoint": "<http url for status>", + "interval": "<frequency to check health> e.g. 10s|10m", + "description": "<human readable description of the check", + "name": "<name of the check>" + }, + { + "endpoint": "<http url for status>", + "interval": "<frequency to check health> e.g. 10s|10m", + "description": "<human readable description of the check", + "name": "<name of the check>" + }, + + ] + } + ] + } + } + }, + { + "Description": "Deregister a service", + "request": { + "endpoint": "/healthservices/register/<service_id>", + "method": "POST" + } + }, + { + "Description": "Get Historical Data for a service", + "request": { + "endpoint": "/healthservices/svchist/<service_id>?start=yyyy-MM-dd'T'HH:mm:ss.SSZ&end=yyyy-MM-dd'T'HH:mm:ss.SSZ", + "method": "GET" + } + } + ] +}
\ No newline at end of file |