Use content negotiation to determine the best resource
representation for the server to return to the client. You can implement
content negotiation based on URL patterns, request parameters, or
HTTP headers.
Implementing content negotiation based on URL patterns
Representational State Transfer (REST) applications can
return different representations of resources. You can use content
negotiation based on URL patterns to determine the content format
that is used to exchange data between servers and clients.
Implementing content negotiation based on request parameters
Representational State Transfer (REST) applications can
return different representations of resources. You can use content
negotiation based on request parameters to determine the content format
that is used to exchange data between servers and clients.
Implementing content negotiation based on HTTP headers
Representational State Transfer (REST) applications can
return different representations of resources. You can use content
negotiation based on HTTP Accept headers to determine the content
format that is used to exchange data between servers and clients.