endpoints not passed into interface but relies on the configuration
settings and removed useless imports
added a simple sample