new endpoint service with tests
working on the api