The Open Data Protocol (OData) is a protocol to request data through a query string.
The Open Data Protocol (OData) is a protocol to access data on the web. It provides a uniform way to query and manipulate data sets through CRUD operations.
Why we need an OData Service?
Advantages
- OData is based on RESTful architecture, so we can retrieve data based on an URL query string.
- OData supports HTTP, Atom Pub as well as JSON format.
- It is very lightweight to use. Since it is lightweight, the performance is very good while interacting between client and service.
- It supports for any type of data source. Even you can use your own custom class as a data source.
- You can create your own custom methods and expose it.
- It supports different HTTP methods:
- GET: Gets one or many entries.
- POST: Create a new entry.
- PUT: Update an existing entry.
- DELETE: Remove an entry.
Limitations
- It is much less secure as it is purely URL based.