Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / resources / UsersRest.java
k-morimoto on 27 Jun 2019 655 bytes app/CosmosにuIdを追加
package com.example.cosmosclient.resources;

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

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 UsersRest {
    @POST("users/{uId}/login")
    Call<SigninResponse> loginList(@Path("uId") String uId, @Query("pw") String pw);

    @POST("users")
    @FormUrlEncoded
    Call<SignupResponse> createUser(@Field("name") String name, @Field("pw") String pw, @Field("icon-image") String icon_image);



}