Baw*_*awa 2 android retrofit retrofit2
我有一个Web服务链接,我希望以不同的customerId形式点击
http://apidev.myserver.com.au:8980/TestService/rest/TestService/jobs/bycustid/customerId
Run Code Online (Sandbox Code Playgroud)
如何附加customerId的值?
这是我的基本网址:
http://apidev.myserver.com.au:8980/TestService/rest/TestService/
Run Code Online (Sandbox Code Playgroud)
这就是我的调用界面:
interface CustomerJobs {
@GET("jobs/bycustid/11726")
Call<CustomerJobsPojo> getCustomerJobs();
}
Run Code Online (Sandbox Code Playgroud)
正如文件所说:
interface CustomerJobs {
@GET("jobs/bycustid/{id}")
Call<CustomerJobsPojo> getCustomerJobs(@Path("id") int id);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
328 次 |
| 最近记录: |