REST_API: rest api client implementation