REST Client implementation