ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-6028) Views: View managed resources need @Produces({"text/plain"}) to generate JSON
Date Thu, 05 Jun 2014 21:36:02 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-6028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tom Beerbower resolved AMBARI-6028.
-----------------------------------

    Resolution: Fixed

pushed to trunk

> Views: View managed resources need @Produces({"text/plain"}) to generate JSON
> -----------------------------------------------------------------------------
>
>                 Key: AMBARI-6028
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6028
>             Project: Ambari
>          Issue Type: Task
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.6.1
>
>
> For managed resource GET calls I wanted JSON response. 
> {code}
> {
>  "a": "b"
> }
> {code}
> Keeping {code}@Produces({"application/json"}){code}  on the @GET method gives a string-serialized
output of the JSON
> {code}
> "{\"a\":\"b\"}"
> {code}
> However when I keep {code}@Produces({"text/plain", "application/json"}){code} correctly
produces JSON.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message