[英]integrating Delete Method API with retrofit 2 android with multiple parameters
I am using retrofit 2 for HTTP request in android. 我在android中使用改进2 for HTTP请求。 The API has delete method implemented and expect 3 parameters I am able to integrate with 1 parameter but could not be able to perform with 3 parameters. API已实现删除方法,并期望3个参数我能够与1个参数集成,但无法使用3个参数执行。 While running it on postman the API response is ok 在postman上运行它时,API响应是可以的
I have tired with one parameter and it is working fine for me 我厌倦了一个参数,它对我来说很好
Here is the sample for multiple parameters on the DELETE method: 以下是DELETE方法中多个参数的示例:
@Headers("Accept: application/json")
@DELETE("/users/{x}/data/{y}/{id}")
Call<Response> deleteData(
@Path("x") String x,
@Path("y") String y,
@Path("id") String id
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.