diff --git a/app/src/main/java/com/example/citrusclient/rest/AccountsRest.java b/app/src/main/java/com/example/citrusclient/rest/AccountsRest.java index e6b84ff..0941f37 100644 --- a/app/src/main/java/com/example/citrusclient/rest/AccountsRest.java +++ b/app/src/main/java/com/example/citrusclient/rest/AccountsRest.java @@ -1,4 +1,30 @@ 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 getAllAccounts( +// +// ); + + @FormUrlEncoded + @POST("accounts") + Call signup( + @Field("account_id") String account_id, + @Field("password") String password + ); + + @FormUrlEncoded + @POST("accounts/{account_id}/login") + Call login( + @Path("account_id") String account_id, + @Field("password") String password + ); }