As defined in rfc2616 - “Content nagotiation is the process of selecting the best representation for a given response when there are multiple representations available.”
Clients passes the header Accept with values like application/json,application/xml etc and tells this format is acceptable. Then server gives the response according to that.
In simpler terms, if your API supports xml, json and csv media type, then let clients decide which kind of media type they need as a response.
[Read More]









