I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to fetch XML data from my RESTful API without specifying parameters.In my metho
@Path annotation use for ordering parameters as your own way. And defined the order in url.
@GET("user/{username}/{password}")
Call> getUserOuth(@Path("username") String username, @Path("password") String password);
@Query annotation auto order of parameters and added with url including "?" symbol.
@GET("user")
Call> getUserOuth(@Query("username") String username, @Query("password") String password);