package com.example.citrusclient.rest; import retrofit2.Call; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; import retrofit2.http.POST; import retrofit2.http.Path; public interface AccountsRest { // @FormUrlEncoded // @GET("accounts") // Call<Void> getAllAccounts( // // ); @FormUrlEncoded @POST("accounts") Call<String> signup( @Field("account_id") String account_id, @Field("password") String password ); @FormUrlEncoded @POST("accounts/{account_id}/login") Call<String> login( @Path("account_id") String account_id, @Field("password") String password ); }