OData based web services (Open Data)

Odata is a combination of  SOAP and REST. Therefore request messages are in a format of URIs and parameters. Response messages can be either ATOM or JSON.

OData was initially created by Microsoft and later it was delivered to the open source community.

Current version of OData specification is v4.0. Specification can be obtained from here.
http://www.odata.org/documentation/





OData communication components

  • Data model - message format standard (data types)
  • Request format and transport protocol - Specific URI specification
  • Client & Server libraries -   Data transformation between native data and xml/json data
Request messaging

Same as REST but slightly different.


http://services.odata.org/OData/OData.svc/Category(1)/Products?$top=2&$orderby=name
Service root                                                          Resource path                 Query options

Query options has $ prefix and each option has a specific function (like orderBy)





Share:

0 comments: