diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index f5943c7..1b509e7 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -67,7 +67,7 @@ } // 指定されたIDの自己紹介を返す(GET) - @Path("/accounts/{account_id}/introduction") + @Path("/{account_id}/introduction") @GET @Produces(MediaType.APPLICATION_JSON) public String getIntroduction(@PathParam("account_id") String accountId){ @@ -76,7 +76,7 @@ } // 指定されたIDの自己紹介を変更する (PUT) - @Path("/accounts/{account_id}/introduction") + @Path("/{account_id}/introduction") @PUT public void changeIntroduction(@PathParam("account_id") String accountId, @FormParam("introduction")String introduction, @@ -84,14 +84,14 @@ accountManager.changeIntroduction(accountId,introduction,token); } ///////// -// @Path("/accounts/{account_id}/photo") +// @Path("/{account_id}/photo") // //画像を返す // @GET // public String getAccount(@PathParam("account_id") String accountId){ // Account ac = accountManager.getAccount(accountId); // return ac.getPhoto(); // } -// @Path("/accounts/{account_id}/photo") +// @Path("/{account_id}/photo") // @PUT @@ -127,7 +127,7 @@ // アカウントidとパスワードでログインし、tokenを返す (POST) - @Path("/accounts/{account_id}/login") + @Path("/{account_id}/login") @POST public void login(@PathParam("account_id") String accountId,@FormParam("password") String password) { accountManager.login(accountId, password);