Get endpoints from the service config.
Merge pull request #2 from pnagy/master

Get endpoints from the service config.