diff --git a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountRest.java b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountRest.java index fa35dbf..3545b59 100644 --- a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountRest.java +++ b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountRest.java @@ -14,8 +14,8 @@ //ユーザー情報の取得 @GET - @Produces(MediaType.APPLICATION_JSON) @Path("/{uid}") + @Produces(MediaType.APPLICATION_JSON) public Account getAccount(@PathParam("uid") String uid){ AccountManager am = AccountManager.getInstance(); Account ac = am.getAccount(uid); @@ -32,7 +32,7 @@ //パスワードの変更 @PUT - @Path("/{uid}") + @Path("/{uid}/pw") public void pwChange(@PathParam("uid") String uid, @FormParam("pw") String pw){ AccountManager am = AccountManager.getInstance(); Account ac = am.getAccount(uid); @@ -42,10 +42,10 @@ System.out.println("Error : Miss match pw"); } } - +// //名前の変更 @PUT - @Path("/{uid}") + @Path("/{uid}/name") public void nameChange(@PathParam("uid") String uid, @FormParam("name") String name, @FormParam("token") String token){ AccountManager am = AccountManager.getInstance(); Account ac = am.getAccount(uid); @@ -59,7 +59,7 @@ //アイコンの変更 // @PUT -// @Path("/{uid}") +// @Path("/{uid}/icon") // public void nameChange(@PathParam("uid") String uid, @FormParam("name") String name, @FormParam("token") String token){ // AccountManager am = AccountManager.getInstance(); // Account ac = am.getAccount(uid); @@ -74,7 +74,7 @@ //アイコンの削除 // @DELETE -// @Path("/{uid}") +// @Path("/{uid}/icon") // public String removeAccount(@PathParam("uid") String uid){ // AccountManager am = AccountManager.getInstance(); // Account ac = am.getAccount(uid);