I read some articles and i search many about differences between Rest WCF vs Web api but I just find difference between WCF vs Web api , I find some difference:
WCF Rest=> a)It support HTTP GET and POST verbs by [WebGet] and [WebInvoke] attributes respectively. b)To enable other HTTP verbs you have to do some configuration in IIS to accept request of that particular verb on .svc files. c)Passing data through parameters using a WebGet needs configuration. The UriTemplate must be specified. d)It support XML, JSON and ATOM data format.
and
WebApi=> a)Unlike WCF Rest service, it use the full featues of HTTP (like URIs, request/response headers, caching, versioning, various content formats). b)Responses are formatted by Web API’s MediaTypeFormatter into JSON, XML or whatever format you want to add as a MediaTypeFormatter.
I want know other differences between them, and when is it better to use WebApi and when Rest Wcf?