Introduction Flashcards

(43 cards)

1
Q

What do social media apps, news sites, travel search engines, and streaming services have in common?

A

They all pull information from the internet using REST APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does REST stand for?

A

Representational State Transfer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of a REST API?

A

To provide structured access to data by sending requests and receiving responses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the “presentation layer” of a web app usually include?

A

The header, navigation, sidebars, and empty templates/frameworks for content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Y/N | Does the web page framework include actual content?

A

No. It provides structure, but content is fetched dynamically using REST API requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens when a user loads a website in their browser?

A

The HTML/CSS/JavaScript framework downloads and runs in the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the framework inside the browser do after loading?

A

It sends automated REST API requests to fetch data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Give an example REST API request made by a social media feed?

A

“Give me the 50 latest posts from my stream.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the REST API send back?

A

A data package (often JSON) containing just the requested content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is the returned data used in the browser?

A

The framework parses it and inserts it into the UI templates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What triggers additional REST API requests in a scrolling feed?

A

Reaching the end of currently displayed content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Y/N | Do smartphones send different REST API requests than desktops?

A

No. The same REST request is made, parsed, and displayed, regardless of device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are two major benefits of using REST APIs?

A
  1. Separation of content from presentation
  2. Faster performance because apps fetch only data, not entire pages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why do REST APIs enable fast applications?

A

They deliver lightweight data instead of full HTML pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do REST APIs support cross-platform development?

A

+ The same API can be consumed by browsers, mobile apps, and other clients

Presentation layers differ, but data retrieval stays consistent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What key skill does the narrator say is essential for building powerful web apps?

A

Knowing how REST APIs work and how to work with them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does the narrator say REST APIs enable developers to build?

A

Lightning-fast applications that consume data rather than full pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Why is separating content and presentation useful for future development?

A

It allows new interfaces, devices, and apps to reuse the same API without rewriting content logic.

19
Q

What does the term “state” in REST refer to?

A

The current representation of a resource delivered to the client (ex: JSON describing a post).

20
Q

What is parsed on the client side after receiving an API response?

A

The data payload (e.g., posts, profile info), usually in JSON format.

21
Q

Why does scrolling a feed endlessly work smoothly with REST APIs?

A

The client sends incremental REST requests to fetch more content as needed.

22
Q

What does the transcript call the page structure before content arrives?

A

A “framework of templates.”

23
Q

Why does the narrator say REST APIs are ready for the future?

A

Because they can support any new interface or platform by providing the same structured data.

24
Q

What does the browser run once the webpage framework is loaded?

A

JavaScript, which controls the REST API requests and content insertion.

25
What is the narrator's overall goal in the course?
To teach how REST APIs work and how to build solutions correctly.
26
What three core technologies make up a webpage?
HTML, CSS, and JavaScript.
27
What does HTML provide in a webpage?
The structure of the content (headings, paragraphs, layout elements).
28
What does CSS provide in a webpage?
Styling and visual design (colors, fonts, spacing).
29
What does JavaScript provide in a webpage?
Interactivity and dynamic behavior (API calls, animations, logic).
30
What does the database icon in the screenshot represent?
A backend data store holding resources such as users, posts, or products.
31
How does the webpage communicate with the database?
Through the REST API.
32
What purpose does the REST API serve between the page and the database?
It acts as the controlled interface for accessing or modifying data.
33
What does the GET method do in REST?
Retrieves a resource or list of resources.
34
What does the POST method do?
Creates a new resource.
35
What does the PUT method do?
Replaces an existing resource completely.
36
What does the PATCH method do?
Partially updates a resource.
37
What does the DELETE method do?
Removes a resource.
38
What does a successful POST request return?
HTTP 201 Created
39
What does 401 Unauthorized mean during a POST?
The client lacks valid authentication credentials to create the resource.
40
What does 409 Conflict mean?
The new resource conflicts with an existing one (duplicate, incompatible state).
41
What does 404 Not Found mean in a POST context?
The endpoint or related parent resource doesn’t exist.
42
Why does POST generate different failure codes?
Because several issues can prevent creating a new resource—auth, conflicts, or missing endpoints.
43
In REST terminology, what is a “resource”?
A data object exposed by the API (e.g., user, post, order).