Change confusing "get_endpoint" name and add docs

No match.