RESTful APIs, OData, Microservices
Web Technology
Subin Sahayam, Rourab Paul Assistant Professor,
Department of Computer Science and Engineering
Shiv Nadar University
REST Web Service
K1
RESTful APIs – Principles
K1
RESTful APIs – Principles
REST = architectural style
RESTful = implemented according to REST principles
K2
RESTful APIs – Principles
K2
RESTful API
K2
REST Web Service vs RESTful API
K1
Aspect | REST services (loose) | RESTful API (strict) |
Adherence | Applies some REST ideas, not all constraints. | Implements all REST constraints end‑to‑end. |
URI style | May mix verbs or RPC-like endpoints. | Noun‑based resource URIs. |
Method semantics | May not fully honor GET/PUT/DELETE/PATCH semantics. | Correct use of methods and status codes. |
Caching/ HATEOAS | Optional or inconsistent. | Cache directives and optional hypermedia for discoverability. |
Typical use | Quick HTTP APIs where partial REST is acceptable. | Public/microservice APIs needing scalability, interoperability, and clarity. |
OData – Open Data Access Protocol
K1
OData (Open Data Protocol) is a standardized protocol for querying and manipulating data over the web.
It is often used to build APIs that allow clients to retrieve data using standardized query options.
OData – Open Data Access Protocol
K2
OData Service – Querying
K2
OData Service – Querying
K2
OData Service – Demo
K2
https://services.odata.org/V4/Northwind/Northwind.svc/
https://services.odata.org/V4/Northwind/Northwind.svc/Products
https://services.odata.org/V4/Northwind/Northwind.svc/Products?$top=2
https://services.odata.org/V4/Northwind/Northwind.svc/Products?$filter=UnitPrice%20gt%2050
https://services.odata.org/V4/Northwind/Northwind.svc/Products?$select=ProductName,UnitPrice
https://www.odata.org/getting-started/understand-odata-in-6-steps/?utm_source=chatgpt.com
Understand OData in 6 steps
Monolithic Architecture
K2
Microservices
K2
References
THANK YOU