REST API Stands for REPRESENTATIONAL STATE TRANSFER
REST APIs operate on a simple request/response system.
- REQUEST- Client can make a request using http methods.
These methods are: GET, POST, PUT, PATCH, DELETE, HEAD, TRACE, OPTIONS, CONNECT
HTTP REQUEST CONTAINS:
1)METHOD
2)HTTP HEADERS
3)BODY
- RESPONSE- Server returns a resonse with an http status code Popular http status code: EX, 200, 202, 403, 404, 500 ETC
HTTP RESPONSE CONTAINS:
1)Status code
2)Http headers
3)Response body