![]() ![]() Always It is not possible to return data in the requested format by the Server. Now, the fact should be clear that “ ASP.NET Web API Content Negotiation” means the client and server can negotiate. One of the standards of the REST service is that the client should have the ability to decide in which format they want the response – whether they want the response in XML or JSON etc. We can define Content Negotiation as “ the process of selecting the best representation for a given response when multiple representations are available”. Others may need the data in JSON format, and still some other wants the data in XML format. ![]() The important and interesting fact is that all these various devices expect the data in various formats.įor example, a few clients want the data in normal HTML, while some of them want the data in a normal text format. Why? Because people are currently not only using Desktop computers to browse the web, but they also are using various types of devices (tab, mobile, etc.) to consume web applications. Representation is very important in the modern web. The first two are (i.e., the resource and the URL) very straightforward, but the last one (i.e., the representation) is a little confusing to understand. We know that there are three pillars of the internet and they are:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |