Web API Features

Source: Internet
Author: User

Webapi has many features (I don't want to use the word "pros"), such as restful, support routing, simple, MVC-like Controller/action code authoring, flexible hosting, and web integration, and more.

Key features of the Web API

1. Support for CRUD (create, retrieve, update, delete) operations based on HTTP verb (GET, POST, PUT, delete)

The different meanings are expressed by different HTTP actions, so there is no need to expose multiple APIs to support these basic operations.

2. The requested reply expresses a different meaning through the HTTP Status code, and the client can negotiate the format with the server via the accept header, such as whether you want the server to return JSON format or XML format.

3. The requested reply format supports Json,xml and can be extended to add additional formats.

4. Native support for OData.

5. Support Self-host or IIS host.

6. Support for most MVC features, such as Routing/controller/action Result/filter/model builder/ioc container/dependency Injection.

WEBAPI is HTTP ~

WCF can also include other protocols, as well as many transport modes (long links, duplex ~)

WCF is cumbersome, redundant, slow, and heavy.

Web API Features

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.