Tuesday, December 29, 2020

Learn about OData

 

OData: Open Data Protocol

Is an open standard that is both data format and protocol for consuming a manipulating data in uniform way.

-          Combination of two parts:

1.       Format : How data is described and serialized

2.       Protocol : How that data manipulated.

Origin of OData:

  • It follows same structure of RSS:
  • Rich Site Structure:
  • RSS has Feed  which contains metadata like id, logo and Entry.
  • Single Feed can have multiple Entries.
  • RSS is also known as “RDF Site Summary” or “Really Simple Syndication”.

Basics of OData:

  •  Is an ISO/IEC  approved
  •  OASIS standards that defines a set of best practice for building and consuming RESTful          APIs.
  • OData is a data access protocol built on core protocol like HTTP and commonly accepted     methodologies like RESTful APIs for the web.
  • There are various kind of libraries and tool available to consume OData.
  • Libraries: https://www.odata.org/libraries/
  • Tools: https://www.odata.org/ecosystem/
  • To write down own libraries, the pure HTTP request and responses are also very important.
  • OData has :
  • 1. Service document describing the data available in given OData service.
  • 2. Concept of entity sets and  entities which are direct parallels of feed and entries of RSS and  Atom.
  • 3. A basic set of operation Create, Read,  Update, Delete and Query (CRUD +Q)
  • Publicly set of OData service available which is known as Northwind services because they        offer a data set based on business scenario that resolves around company called Northwind Traders.
  • This data set contains entities like Customer, Product and Suppliers.

Structure :

<Service>

<Workspace>

<Collection>

</Collection>

</Workspace>

</Service>

Example:

<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xml:base="https://services.odata.org/V3/Northwind/Northwind.svc/">

<workspace>

<atom:title>Default</atom:title>

<collection href="Categories">

<atom:title>Categories</atom:title>

</collection>

</workspace>

</service>



No comments:

Post a Comment

BOL Vs GENIL..(SAP CRM)

 BOL: The BOL layer provides a consistent interface to access the business objects APIs or the underlying data fetching APIs using the GENIL...