d2b703d0582f93abbd10b87bb95132cd89757728
[cli.git] /
1 [ {
2   "request" : {
3     "method" : "post",
4     "uri" : "/api/microservices/v1/services",
5     "headers" : {
6       "Accept" : "application/json",
7       "Content-Type" : "application/json"
8     },
9     "json" : {
10       "serviceName" : "test",
11       "version" : "v1",
12       "path" : "/test",
13       "url" : "/test",
14       "protocol" : "REST",
15       "enable_ssl" : "",
16       "visualRange" : "1",
17       "lb_policy" : "ip_hash",
18       "nodes" : [ {
19         "ip" : "10.0.0.1",
20         "port" : "8080",
21         "ttl" : 0
22       } ]
23     }
24   },
25   "response" : {
26     "status" : 201,
27     "json" : {
28       "serviceName" : "test",
29       "version" : "v1",
30       "url" : "/test",
31       "protocol" : "REST",
32       "visualRange" : "1",
33       "lb_policy" : "ip_hash",
34       "publish_port" : "",
35       "namespace" : "",
36       "network_plane_type" : "",
37       "host" : "",
38       "path" : "/test",
39       "enable_ssl" : false,
40       "nodes" : [ {
41         "ip" : "10.0.0.1",
42         "port" : "8080",
43         "checkType" : "",
44         "checkUrl" : "",
45         "ha_role" : "",
46         "nodeId" : "_test_10.0.0.1_8080",
47         "status" : "passing"
48       } ],
49       "metadata" : [ ],
50       "labels" : [ ],
51       "status" : "1",
52       "is_manual" : false
53     }
54   }
55 } ]