改造:如何修复"只允许一个http方法.发现:get and get"?

and*_*ich 5 android retrofit

我有这个结构的请求.
请求getTransportByStation完美运行.但是我得到了例外java.lang.IllegalArgumentException: TransportWebService.getTransportByRoute: Only one HTTP method is allowed. Found: GET and GET. 我发现只有POST和POST的解决方案.

interface TransportWebService {
    @GET(QUERY_CATEGORY_TRANSPORT + "GetTransportByNextStation/{station}")
    Observable<ResponseRouteList> getTransportByStation(
            @Path("city") String city,
            @Path("station") String station,
            @Query("count") int count,
            @Query("userid") String userId
    );

    @GET(QUERY_CATEGORY_TRANSPORT + "GetTransportByRoute/{route}")
    Observable<ResponseRouteList> getTransportByRoute(
            @Path("city") String city,
            @Path("station") String route,
            @Query("count") int count,
            @Query("userid") String userId
    );

    @GET(QUERY_CATEGORY_TRANSPORT + "Time")
    Observable<Integer> getTime(
            @Path("city") String city
    );
}
Run Code Online (Sandbox Code Playgroud)

UPD:改造版本1.9.0这样的
Init服务

private static final TransportWebService SERVICE = Common.getRestAdapter()
            .setConverter(new GsonConverter(new Gson())
            .build()
            .create(TransportWebService.class);
Run Code Online (Sandbox Code Playgroud)

Sir*_*i0S 11

在第二个GET方法中,第二个参数(@PATH("station"))应该是@PATH("route").