改造2查询,得到回复?

时间:2018-02-14 06:42:51

标签: java android retrofit2

我如何使用正确的语法访问: api / kiosk / search / staff?companyID = {companyID}& locationID = {locationID}& name = {name}

现在我这样做:

@GET("api/kiosk/search/staff?companyID={companyID}&locationID={locationID}&name={name}")
Call<Staff[]> staffItems(@Path("companyID") String companyID,@Query("locationId") String locationId, @Query("name") String name, @Header("Authorization")String auth);

1 个答案:

答案 0 :(得分:0)

试试这个

@GET("api/kiosk/search/staff")
Call<Staff[]> staffItems(@Query("companyID") String companyID,@Query("locationId") String locationId, @Query("name") String 
name, @Header("Authorization")String auth);