- API:
- A set of rules and protocols that allows different software applications to communicate with each other.
- Used to access and manipulate resources
- generally works with data
- used in form of xml or JSON
- eg : `{id: 42, type: employee, company: 5}`
- Route :
- Defines when a particular URL is accessed, how request should be processed, and what response should be returned
- path of a webpage or website
- A layer above API, can be used alongside with API to include the API's functionality
- eg: `localhost:8080/employees/42`
- Endpoint:
- The gateway or port that allows/exposes communication channel
- API or Route
- eg: `GET localhost:8080/employees/42`