getEndpoints
$result = getEndpoints()
Return a list of all endpoint names.
This function takes no parameters
The method returns an array of objects, each object containing a string with the name of an endpoint.