From 1432f75e84414fefcbb9a2ece4faeaccb373d273 Mon Sep 17 00:00:00 2001 From: Cleverson Sacramento Date: Fri, 6 Jun 2014 16:00:25 -0300 Subject: [PATCH] Ajuste no media type do insert --- archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java b/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java index b32bac7..957099f 100644 --- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java +++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java @@ -53,7 +53,7 @@ public class BookmarkREST { @LoggedIn @Transactional @ValidatePayload - @Produces("text/plain") + @Produces("application/json") @Consumes("application/json") public Response insert(Bookmark entity, @Context UriInfo uriInfo) { checkId(entity); -- libgit2 0.21.2