Trying to start off API automation project for anization project
I am trying to automate a API case using RestAssured and started off with a simple test case - to get details. I am doing this in my anization.
When I hit the endpoint, I get response as "None"
Below is the code
RestAssured.proxy("company_proxy_url"); // without giving this, the call was not happening and execution was stuck.
Response response = RestAssured
.given().baseUri(base_URI)
.log().all()
.header("Authorization", AUTH)
.header("Content-Type","application/json")
.when().get()
.then()
.extract().response();
The same hit using postman works perfectly fine.
Is there anything missing.