@RestController @RequestMapping(path="/router") public class RouterEndpoint extends Object
| 构造器和说明 |
|---|
RouterEndpoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<org.springframework.cloud.client.ServiceInstance> |
getInstanceList(String serviceId) |
com.nepxion.discovery.common.entity.RouterEntity |
getRouterEntity() |
List<com.nepxion.discovery.common.entity.RouterEntity> |
getRouterEntityList(String routeServiceId) |
List<com.nepxion.discovery.common.entity.RouterEntity> |
getRouterEntityList(String routeServiceId,
String routeHost,
int routePort,
String routeContextPath) |
List<String> |
getServices() |
com.nepxion.discovery.common.entity.RouterEntity |
info() |
List<org.springframework.cloud.client.ServiceInstance> |
instances(String serviceId) |
List<com.nepxion.discovery.common.entity.RouterEntity> |
route(String routeServiceId) |
List<com.nepxion.discovery.common.entity.RouterEntity> |
route(String routeServiceId,
String routeHost,
int routePort,
String routeContextPath) |
com.nepxion.discovery.common.entity.RouterEntity |
routes(String routeServiceIds) |
com.nepxion.discovery.common.entity.RouterEntity |
routeTree(String routeServiceIds) |
List<String> |
services() |
@RequestMapping(path="/instances/{serviceId}",
method=GET)
@ResponseBody
public List<org.springframework.cloud.client.ServiceInstance> instances(@PathVariable(value="serviceId")
String serviceId)
@RequestMapping(path="/info",
method=GET)
@ResponseBody
public com.nepxion.discovery.common.entity.RouterEntity info()
@RequestMapping(path="/route/{routeServiceId}",
method=GET)
@ResponseBody
public List<com.nepxion.discovery.common.entity.RouterEntity> route(@PathVariable(value="routeServiceId")
String routeServiceId)
@RequestMapping(path="/route/{routeServiceId}/{routeHost}/{routePort}/{routeContextPath}",
method=GET)
@ResponseBody
public List<com.nepxion.discovery.common.entity.RouterEntity> route(@PathVariable(value="routeServiceId")
String routeServiceId,
@PathVariable(value="routeHost")
String routeHost,
@PathVariable(value="routePort")
int routePort,
@PathVariable(value="routeContextPath")
String routeContextPath)
@RequestMapping(path="/routes",
method=POST)
@ResponseBody
public com.nepxion.discovery.common.entity.RouterEntity routes(@RequestBody
String routeServiceIds)
public List<org.springframework.cloud.client.ServiceInstance> getInstanceList(String serviceId)
public com.nepxion.discovery.common.entity.RouterEntity getRouterEntity()
public List<com.nepxion.discovery.common.entity.RouterEntity> getRouterEntityList(String routeServiceId)
public List<com.nepxion.discovery.common.entity.RouterEntity> getRouterEntityList(String routeServiceId, String routeHost, int routePort, String routeContextPath)
public com.nepxion.discovery.common.entity.RouterEntity routeTree(String routeServiceIds)
Copyright © 2020 Nepxion. All rights reserved.