小编Bha*_*h S的帖子

如何在头文件中传递授权令牌?

尝试使用放心自动化api测试

@Test
public void Login() {
    Response resp = given().
            body("{\"phone_number\":\"2222222222\",\"\r\n" + 
                    "               + \" \"country_code\": \"+91\",\"\r\n" + 
                    "               + \" \"login_type\": 0}").
            when().
            contentType(ContentType.JSON).
            post("http://url/api/v1/login");

    System.out.println(resp.asString());
}
Run Code Online (Sandbox Code Playgroud)

java rest

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×1

rest ×1