Show Table of Contents
2.6. Response Type
Although OpenShift supports both XML and JSON response formats, the default server response is the JSON syntax. Include the following HTTP header to receive the response in XML:
Accept: application/xml
Using Ruby
headers = {"Accept" => "application/xml"}
Using Python
request.add_header("Accept", "application/xml")
Using cURL
curl "https://openshift.redhat.com/broker/rest/api" -H "Accept: application/xml"

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.