如何使用 java 传递 POST 数组对象 - 改造 2
How to pass a POST array object using java - retrofit 2
我在 Java 中使用改造 2。如何使用这两个键 (url, name):
发送 post 请求
{ "frames": [{
"url": "string",
"name": "string"
}]
}
public class ExteriorPayLoad {
private final String url;
private final String name;
public ExteriorPayLoad(String url, String name) {
this.url = url;
this.name = name;
}
}
我没有在 retrofit2 API 源代码中找到 class ExteriorPayLoad。
您无法使用此 class ExteriorPayLoad 发送 post 请求。您必须指定正文。
这里是一个 link,展示了使用 Retrofit2 发出 post 请求的示例:
谢谢。
我在 Java 中使用改造 2。如何使用这两个键 (url, name):
发送 post 请求{ "frames": [{
"url": "string",
"name": "string"
}]
}
public class ExteriorPayLoad {
private final String url;
private final String name;
public ExteriorPayLoad(String url, String name) {
this.url = url;
this.name = name;
}
}
我没有在 retrofit2 API 源代码中找到 class ExteriorPayLoad。
您无法使用此 class ExteriorPayLoad 发送 post 请求。您必须指定正文。
这里是一个 link,展示了使用 Retrofit2 发出 post 请求的示例:
谢谢。