create REST-Service, to reuse more code