refactored base api path to a service