Open asifdxtreme opened 6 years ago
@lexkong Can you please let us know which microservice-sdk you are using? Currently we have Java-SDK and Go-SDK which can automatically interact with Service-Center and do the service-discovery and routing management. These two are full fledged SDK frameworks which gives you most of the functionality you need in any of the microservice framework. You can visit the website for more information http://servicecomb.incubator.apache.org/
Anyhow if you directly want to query the API's of Service-center then you can use this API to get all the microservices list and then use the microserviceID to get the instance details of the microservice using this API.
For full list of API's exposed by Service-Center you can look here.
Please let us know if this solves your problem, we will be happy to help you further.
you can reference to dev-guide. The guide will teach you how to SD from ServiceCenter
@asifdxtreme thanks for you help, i use go-sdk, i checked the docs, but it may not solve my problem, my problem is: currently we have a gateway like tyk, now we want to connect to tyk as our gateway, request to gateway direct and then want gateway can find the endpoint according to the path pass to tyk.
Issue raised by @lexkong my problem is, we have a api gateway, and now we want to find service from service center, which is from service center our api gateway can find host:port for the specified path such as: /calculator/bmi
is there any way or docs used to connect our api gateway and service center?