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.
Consider the following Web API controllers, which have been named AuthorsV1Controller and AuthorsV2Controller respectively. public class AuthorsV1Controller : 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.