API Flashcards

1
Q

What does API stand for?

A

Application Programming Interface

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

What are the HTTP verbs and what are their CRUD equivalents?

A
POST - Create
GET - Read
PUT - Update/Replace
PATCH - Update/Modify
DELETE - Delete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the structure of an HTTP request and response?

A

A request line
A set of header fields
A body, which is optional

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

What are the categories of HTTP response status code?

A
Informational responses (100 - 199)
Successful responses (200-299)
Redirection messages (300-399)
Client error messages (400-499)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does REST stand for in the context of restful APIs?

A

Representational state transfer

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

What are the characteristics of a REST API?

A
Well documented and reliable
Express URLs with nouns rather than verbs
Track version
Make expressive use of HTTP Status codes
Handle errors carefully and explicitly
Log activity
Paginate, filter and sort results
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What do we mean by caching?

A

Caching is the process of storing data in a cache. A cache is s temporary storage area that can accessed more quickly.

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