1 Oct - APIs (Luca) Flashcards

1
Q

What is an API?

A

Application Programming Interfaces
to call functions on remote servers via http
(for free!)

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

Explain the REST architectural style for APIs?

A

Client-server:
* A client-server architecture
Stateless:
* The server keeps no session information. Each request is served independently
Uniform interface:
* An API specifies how to access resources and the format of responses

Secondary:
Layered:
* The server that handles the request might act as intermediary and issue a request
to another server to get the resource
Cacheability:
* Intermediaries (or clients) can cache the results

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