Divide the MSB source codes into two repos
[msb/apigateway.git] / apiroute / apiroute-service / src / test / resources / ext / initServices / readme.txt
1 ########################## initialize default routeInfo to redis ##########################\r
2 \r
3 #when msb is starting, it will automatically read all json files under this folder, and initializes to redis. \r
4 #If the routeInfo is exist, it will be ignored, otherwise it will be saved.\r
5 \r
6 \r
7 # JSON File content must be routeInfo format array like below examples:\r
8 \r
9 #  optional:\r
10 #  apiJsonType: 1:user-defined json type    0:pre-defined json type\r
11 #  control:   0:default   1:readonly  2:hidden\r
12 #  status:    0:disabled   1:enabled  \r
13 #  Tip£ºcontrol¡¢status¡¢weight are  non-mandatory \r
14 \r
15 [\r
16 ##########################apiRoute example##########################\r
17 \r
18 {\r
19                 "serviceName" : "microservices",\r
20                 "version" : "v1",\r
21                 "url" : "/api/microservices/v1",\r
22                 "apiJson" : "/api/microservices/v1/swagger.json",\r
23                 "apiJsonType" : "1",\r
24                 "metricsUrl" : "/admin/metrics",\r
25                 "control" : "1",\r
26                 "status" : "1",\r
27                 "servers" : [{\r
28                                 "ip" : "127.0.0.1",\r
29                                 "port" : "8086",\r
30                                 "weight" : 0\r
31                         }\r
32                 ]\r
33         },\r
34         \r
35 ##########################iuiRoute example##########################\r
36         \r
37 {\r
38                 "serviceName" : "microservices",\r
39                 "url" : "/iui/microservices",\r
40                 "control" : "1",\r
41                 "status" : "1",\r
42                 "servers" : [{\r
43                                 "ip" : "127.0.0.1",\r
44                                 "port" : "8086",\r
45                                 "weight" : 0\r
46                         }\r
47                 ]\r
48         },\r
49         \r
50 ##########################customRoute example########################## \r
51         {\r
52                 "serviceName" : "/test",\r
53                 "url" : "/test",\r
54                 "control" : "0",\r
55                 "status" : "1",\r
56                 "servers" : [{\r
57                                 "ip" : "10.74.56.36",\r
58                                 "port" : "8989",\r
59                                 "weight" : 0\r
60                         }\r
61                 ]\r
62         }\r
63 ]