diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index 425033f..35a2503 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -52,7 +52,7 @@ public void deleteAccount(@PathParam("account_id") String accountId, @QueryParam("token") String token, @QueryParam("password")String password) { - accountManager.deleteAccount(accountId, token, password); + accountManager.deleteAccount(accountId, password, token); } @@ -64,14 +64,13 @@ @FormParam("old_password")String oldPassword, @FormParam("new_password")String newPassword){ accountManager.changePassword(accountId,token,oldPassword,newPassword); - } // 指定されたIDの自己紹介を返す(GET) @Path("/accounts/{account_id}/introduction") @GET @Produces(MediaType.APPLICATION_JSON) - public String getIntroduction(@PathParam("account_id") String accountId){ //account_idを渡してintroductionが返ってくる + public String getIntroduction(@PathParam("account_id") String accountId){ String ac = accountManager.AccountIntro(accountId); return ac; } @@ -80,15 +79,15 @@ @Path("/accounts/{account_id}/introduction") @PUT public void changeIntroduction(@PathParam("account_id") String accountId, - @FormParam("token") String token, - @FormParam("introduction")String introduction){ //account_idを渡してManegerから値が返ってくる + @FormParam("token") String token, + @FormParam("introduction")String introduction){ accountManager.changeIntroduction(accountId,token,introduction); } ///////// // @Path("/accounts/{account_id}/photo") // //画像を返す // @GET -// public String getAccount(@PathParam("account_id") String accountId){ //account_idを渡してManegerから値が返ってくる +// public String getAccount(@PathParam("account_id") String accountId){ // Account ac = accountManager.getAccount(accountId); // return ac.getPhoto(); // }