diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index 48237dd..2eb5ccd 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -185,10 +185,10 @@ // accountの色を返す(GET) @Path("/{account_id}/accountColor") @GET - @Produces(MediaType.TEXT_PLAIN) + @Produces(MediaType.APPLICATION_JSON) public String getAccountColor(@PathParam("account_id") String accountId){ String accountColor = accountManager.getAccountColor(accountId); - return accountColor; + return "\"" + accountColor + "\""; } //accountの色を変更する(PUT)