Commit 1432f75e84414fefcbb9a2ece4faeaccb373d273
1 parent
1237329c
Exists in
master
Ajuste no media type do insert
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
archetype/html-rest/src/main/resources/archetype-resources/src/main/java/rest/BookmarkREST.java
@@ -53,7 +53,7 @@ public class BookmarkREST { | @@ -53,7 +53,7 @@ public class BookmarkREST { | ||
53 | @LoggedIn | 53 | @LoggedIn |
54 | @Transactional | 54 | @Transactional |
55 | @ValidatePayload | 55 | @ValidatePayload |
56 | - @Produces("text/plain") | 56 | + @Produces("application/json") |
57 | @Consumes("application/json") | 57 | @Consumes("application/json") |
58 | public Response insert(Bookmark entity, @Context UriInfo uriInfo) { | 58 | public Response insert(Bookmark entity, @Context UriInfo uriInfo) { |
59 | checkId(entity); | 59 | checkId(entity); |