.
API stand for application programming interface
Rest is stand for Representational State Transfer
if is an architectural style for network communication between two application which relies on a stateless protocol (Usually HTTP) for interaction
Code on Demand(Optional)
Get -→Retrieve a resource
Post -→Create a resource
Put-→Update a resource
Delete -→Delete a resource\
200-→Everything is OK
201-→Resource created
400-→Bad request
404-→Not found
401-→unauthorized
403-→Forbidden (Not allowed)
we can send version in header of request and in URL as well