starting client for REST api