How to identify the Relation between the services & Upstreams-Targets U

Currently “/services” is returning the list “data” array there is no key available to define this object is related to Route/upstream/targets. There is no such identifier/key available to identify them. We need to additionally apply custom logic to differentiate by using names with naming conventions.

Please suggest solution how this relation can be identified directly from services.

The response of /services returns an array of services, each of which has an “id” field uniquely identifying the service. You can then discover the relations between a service and a route by using the /services/id/routes api call as per the documentation here (Gateway Admin - EE (Beta) - latest | Kong Docs).

(I think you are able to figure out the above, but your question is not clear to me)