Fixed RestClient default parameters and Authentication

RestClient default parameters and Authentication were not taken in consideration.