Who could blame you? We've already seen one summary; let's try another:
Yes. Well, the request is the same, but the response is different
A lot of people end up creating "like" buttons; that's a good use of Ajax. Sometimes they even do comments and such.
There are two answers here. One general and one more specific.
In general, an API (application program interface) is how one program talks to another.
For example, we can talk about the bcrypt
API,
which consists of just two functions: gensalt
and hashpw
. Or the Flask
API, which is
much more complicated.
In the context of this reading, an API is a set of endpoints and HTTP methods that allow a front-end (usually a browser, but might be another program) to talk to a back-end (a web server).
The HTML <script>
allows you to embed JS code in
an HTML page, or to load JS code from an external file.
I'm happy to go over the REST API
Sure. Here's the link to the people app