diff --git a/app/src/main/java/com/example/sprout/refactor/api/RegistrationService.java b/app/src/main/java/com/example/sprout/refactor/api/RegistrationService.java index a23ddd0..9d5bb07 100644 --- a/app/src/main/java/com/example/sprout/refactor/api/RegistrationService.java +++ b/app/src/main/java/com/example/sprout/refactor/api/RegistrationService.java @@ -5,6 +5,7 @@ import io.reactivex.Observable; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; +import retrofit2.http.GET; import retrofit2.http.POST; /** @@ -23,4 +24,10 @@ @FormUrlEncoded @POST("accounts") Observable registration(@Field("userName") String userName); + + /** + * アカウント取得 + */ + @GET("accounts/{userId}") + Observable getAccount(@Field("userId") int userId); }