Listing REST services
You can display a list of all REST services.
For example, the following function, called
list_services()
, lists all
endpoints:def list_services():
url = "https://%s:50050/v1/services" % (restHostname)
headers = {
"content-type": "application/json",
"authorization": token
}
response = requests.get(url, verify = False, headers = headers, proxies = None, json = None)
pprint(response.json())