2017-02-09 5 views

答えて

1

私は後付けで以下のように使用しています何2.

URL_BASE = http://192.168.1.11:8080

Retrofit retrofit = new Retrofit.Builder() 
       .client(httpClient) 
       .baseUrl(URL_BASE + "/") 
       .addConverterFactory(GsonConverterFactory.create()) 
       .build(); 

エンドポイント:http://192.168.1.11:8080/users

@GET("users") 
Call<Response> getUser(); 
+0

と場合は、エンドポイントを持っていけませんか? –

+0

エンドポイントとしてパスを渡す:@GET( "") –

関連する問題