Content Negotiation

When issuing a query request to a web service, there are two methods for requesting a specific resource type:

  • URI Extensions
  • Content Negotiation

URI Extensions


HTTP Accept header


Accept: "application/json"
Accept: "application/xml"
Accept: "application/atom+xml"

Web Services perform Content Negotiation in the following order:

  1. Use the URI extension (if provided)
  2. Use the HTTP Accept header