CRUD Operations
One of the main features of OData is that it uses the existing HTTP verbs GET, PUT, POST, and DELETE against addressable resources identified in the URI.
Conceptually, OData is a way of performing database-style create, read, update, and delete operations on resources by using HTTP verbs.
CRUD Operations Called on Entity Sets
We have already observed how we can read the service document and the service metadata document using HTTP GET. Here we focus on how we can perform create, read, update, and delete operations.
The following operation can be called on entity sets:
The following operation can be called on entities:
OData batching enables you to send multiple operations in a single HTTP request. You can express that all these operations must be executed on the server with an all-or-nothing logic. In an OData batch request, the payload is represented as a multipart message. A batch request is sent to the batch endpoint of an OData service. The URI of the batch endpoint is the service root URI appended by $batch.