Get endpoints from the service config.