Implemented client that can connect to rest api