Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / resources / JoinGroupRest.java
t-tai on 2 Jul 2019 564 bytes retrofit
package com.example.cosmosclient.resources;

import com.example.cosmosclient.entities.JoinGroupResponse;
import com.example.cosmosclient.entities.SigninResponse;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface JoinGroupRest {
        @POST("groups/{gId}/members")
        @FormUrlEncoded
        Call<JoinGroupResponse> JoinGroup(@Path("gId") String gId, @Field("uId ") String uId , @Field("token ") String token);

}