Search code examples
asp.netrestasp.net-web-apiodata

Plain Web API or Web API and OData?


I'm starting a project that has to expose a RESTful service that will be consumed by a wide variety of clients of several OSs.

I'm reading about Web API and OData using Web API and it's hard for me to decide what to use, the plain Web API or the OData one.

What are some notable pros and cons?

Update
Would you guys be kind enough and comment on why this question is "primarily opinion based"? where exactly do you see any personal opinion here?


Solution

  • I've found this great post by Julie Lerman, that explains Web API and OData, and that OData is like a Web API with added a WCF-like feature set.

    One of the features is easy prototypes of generic CRUD controllers.
    The article is more detailed and clear.