How does HTTP Work contd..
- Deconstructing Response
Experiment
- Open Git Bash
- Execute the following command
- To get only response
curl https://jsonplaceholder.typicode.com/todos/1
- To get only response headers and status
curl https://jsonplaceholder.typicode.com/todos/1 -I
- To get status, response headers and response
curl https://jsonplaceholder.typicode.com/todos/1 -i
- To get only response
What is REST
-
REST stands for REpresentational State Transfer
-
Introduced by Roy Fielding’s doctoral dissertation
-
Concepts include
- Seperation of Client and Server
- Server Requests are Stateless
- Cacheable Requests
- Uniform Interface
-
Experiment:
- Download Postman Refer Here
-
A Well Designed API
- Use Post Man to Generate HTTP request for your github or use https://api.github.com/users/shaikkhajaibrahim