Я пытаюсь получить ответ от API, используя запрос restAssured
java, но ответа нет.
У меня есть следующий код:
public void getValuesFromApi() {
RestAssured.baseURI = "http://luckystagingfrontend.dsquares.com/api/account";
Response res = given().body("{" +
"\"Email\": \"alaa.ali@thelucky.app\","+
"\"Password\": \"123@abc\","+
"}").when().post("/login").then().extract().response();
}
}
Это Ядро приводит к сообщению об ошибке:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1
(file:/Users/alaaali/.m2/repository/org/codehaus/groovy/groovy/2.5.6/groovy-2.5.6.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Кто-нибудь может помочь, пожалуйста?