REST, Request, Response
Web Technology
Subin Sahayam, Rourab Paul, Assistant Professor,
Department of Computer Science and Engineering
Shiv Nadar University
REST Web Service
REST is an architectural style for designing web services, where resources are identified by URLs and accessed using standard HTTP methods.
K1
REST Web Service
REST is an architectural style for designing web services, where resources are identified by URLs and accessed using standard HTTP methods.
K1
REST Web Service
K1
REST Web Service
K1
REST Architecture
K2
REST Request
K2
HTTP Verbs
K2
HTTP Verbs
K2
Method | Purpose | Example |
GET | Read data | Get student 101 |
POST | Create data | Add a new student |
PUT | Replace/update data | Update student 101 |
PATCH | Partially update | Change only student's name |
DELETE | Delete data | Delete student 101 |
HTTP Verbs
K1
HTTP Verbs
K2
REST Response
K2
Website / Service | Example REST API use |
GitHub | Repositories, users, issues, commits |
Google Maps Platform | Places, routes, geocoding |
Spotify | Music, albums, artists, playlists |
Slack | Messages, channels, users |
Google Drive | Files and folders |
Google Sheets | Read/write spreadsheet data |
Gmail | Messages, labels, threads |
Popular real-world services
Git Hub Example
Purpose | HTTP Method | REST API URL |
Get a user | GET | https://api.github.com/users/octocat |
Get user repositories | GET | https://api.github.com/users/octocat/repos |
Get repository information | GET | https://api.github.com/repos/octocat/Hello-World |
Get repository issues | GET | https://api.github.com/repos/octocat/Hello-World/issues |
Get repository contents | GET | https://api.github.com/repos/octocat/Hello-World/contents/README |
Get pull requests | GET | https://api.github.com/repos/octocat/Hello-World/pulls |
THANK YOU