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