API Flashcards
1
Q
What does API stand for?
A
Application Programming Interface
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
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
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)
5
Q
What does REST stand for in the context of restful APIs?
A
Representational state transfer
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
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.