News
Other types: in this case, your Web API would take advantage of the appropriate media formatter to serialize and return data from the Web API controller method with a response status code of 200.
Note that the DelegatingHandler class in turn derives from the HttpMessageHandler class. Consider the following Web API controller. public class DefaultController : ApiController ...
You may want to use attributed routing if you need many custom routes in a controller, or just want to have a more SEO-friendly routes. Web API 2 includes a few different types of routing attributes.
Add a new Web API v2 controller to the Controllers folder, as seen in Figure 4. [Click on image for larger view.] Figure 4. ... [RoutePrefix("api/blog")] [RoutePrefix("api/blogs")] public class ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results