BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/5967947895930880/lesson/6f262f37b720e7d6f53ea3057bf8528f?ref=outlook-calendar
SUMMARY:Understanding REST APIs
DTSTART;TZID=America/Los_Angeles:20260509T190000
DTEND;TZID=America/Los_Angeles:20260509T200000
LOCATION:https://www.learndesk.us/class/5967947895930880/lesson/6f262f37b720e7d6f53ea3057bf8528f?ref=outlook-calendar
DESCRIPTION: 


Why Implement a REST API?

Not practical to send huge amount of data (e.g., entire product catalog to client)
Especially if the device is slow, such as 3G Mobile
Certain data, such as login data, is not safe to send in its entirety to the end user
More flexible, efficient to have a client request specific data that it needs
Clients requesting sensitive data can pass along necessary credentials
REST API = Endpoint where the client makes that request

What is a REST API?

API = Application Programming Interface
Endpoint where two computers communicate
Tends to use JavaScript, HTTP (although this is not a requirement of a REST API)
The client requests certain information, the API replies by sending it (if it wants to)

What is REST?

REST = Representational State Transfer
Essentially sending data (state) from one device to another
Our example: From Node.js server to web application
Stateless
No local records of previous transactions
Authentication must be passed with every request...

https://www.learndesk.us/class/5967947895930880/lesson/6f262f37b720e7d6f53ea3057bf8528f?ref=outlook-calendar
STATUS:CONFIRMED
SEQUENCE:3
BEGIN:VALARM
TRIGGER:-PT10M
DESCRIPTION:Class Reminder
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR