Mapping Endpoint IDs

TIBCO Mashery Local provides a script that allows fetching a list of endpoints with details such as the Endpoint ID and the Endpoint name. The Endpoints associated with a service are displayed. The Service ID is the parameter used to fetch the Endpoint details.
//Request searching with a particular service id
python getEndpointNames.py --service 95bpf2jv3f8p5x3xqsu657x5

//Response in json formatter
{
   "services":[
      {
         "endpoints":[
            {
               "id":"7xwgjatahmuwgrz79cgw286a",
               "name":"CORS-disabled"
            },
            {
               "id":"2m4zz8nw4n9w36uau7j2bnqb",
               "name":"Custom CORS(custom rest as the API key source)"
            },
            {
               "id":"g2qx6vhxubu4d4w66egqnxsh",
               "name":"CORS-enabled- EIN-112-dontallow"
            },
            {
               "id":"uavv2nm6yy7j94nhp8zp5kjf",
               "name":"CORS-enabled-EIN-112"
            },
            {
               "id":"pgbrzzu89dtyvumqht4ncnt4",
               "name":"preflight-requestmultipledomainno"
            },
            {
               "id":"7qcpe6dsss4kxp4u8c6fy5pr",
               "name":"EIN-222"
            }
         ],
         "id":"95bpf2jv3f8p5x3xqsu657x5"
      }
   ]
}