added base implementation of ApiService