PROGRAM AREA
Statistics
The Highest Post
Statistics
Count
36
Avg
276.81
Min
21
Max
9230
WebApi Top questions
Details
Peter Agyekum
What is the content negotiation in Web API?
Content negotiation is the process of selecting the best representation for a given response when there are multiple representations available. Means, depending on the Accept header value in the request, the server sends the response. The primary mechanism for content negotiation in HTTP are these request headers − Accept − Which media types are acceptable for the response, such as "application/json," "application/xml," or a custom media type such as "application/vnd.example+xml" Accept-Charset − Which character sets are acceptable, such as UTF-8 or ISO 8859-1. Accept-Encoding − Which content encodings are acceptable, such as gzip. Accept-Language − The preferred natural language, such as "en-us". The server can also look at other portions of the HTTP request. For example, if the request contains an X-Requested-With header, indicating an AJAX request, the server might default to JSON if there is no Accept header.
Post Reply
Back to HomePage
Related Topics
What is Web API?
Why is Web API required? Is it possible to use RESTful services using WCF?
Why select Web API?
What are the advantages of Web API?
What are main return types supported in Web API?
Web API supports which protocol?
Which .NET framework supports Web API?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
What is Web API Routing?
What is SOAP?
How to you can limit Access to Web API to Specific HTTP Verb?
What is the meaning of TestApi?
How you can return View from ASP.NET Web API method?
How to register exception filter globally?
Explain what is REST and RESTFUL?
Give me one example of Web API Routing?
How can you handle errors in Web API?
What New Features comes with ASP.NET Web API 2.0?
Name the tools or API for developing or testing web api?
What is REST?
How to unit test Web API?
Tell me the code snippet to show how we can return 404 errors from HttpError?
Web API supports which protocol?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
Explain method to handle error using HttpError in Web API?
How to handle errors in Web API?
State differences between MVC and WebAPI
Who can consume WebAPI?
Compare Web API and WCF?
What is Page event?
What is an API and how is it used?
What is endpoint in REST API?
What is a REST based API?
What is the content negotiation in Web API?
What is Cross-Origin Resource Sharing (CORS)?
Test Web api55