I have a format api localhost / api /? Auth.method = {"username": "value1", "password": "value2"}
How can I set values via retrofit?
Tried to set the function function (@Path ("value1") String username, @Path ("value2") String password);
But returns error: must not have replace block. For dynamic query parameters use @Query.
@Query("auth.method")
and pass a class object serialized toJSON
with stringusername
andpassword
fields. - Yuriy SPb ♦ pm