Jonathan Halterman created AMBARI-12482:
-------------------------------------------

             Summary: ambari-server's API should support Accept header
                 Key: AMBARI-12482
                 URL: https://issues.apache.org/jira/browse/AMBARI-12482
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
            Reporter: Jonathan Halterman
            Priority: Minor


Ambari-server returns JSON, yet specifying an Accept header such as Accept: 
application/json yields a 406:

{
  "status": 406,
  "message": "Not Acceptable"
}

There should be no problem specifying application/json since that's what Ambari 
provides by default. Ideally, application/xml should be supported as well since 
JAX-RS can use resource serializers such as Jackson to take care of this 
automatically.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to