8 lines
200 B
Python
8 lines
200 B
Python
|
|
|
|
def endpoint_id_to_name_converter(endpoints, endpoint_id):
|
|
for endpoint in endpoints:
|
|
if endpoint['id'] == endpoint_id:
|
|
return endpoint['name']
|
|
return "Unknown endpoint"
|