REST APIs Flashcards
What is an API?
A software interface that allows two applications to communicate with each other
What does CRUD stand for in the context of REST APIs?
Create, Read, Update, and Delete
What is a CRUD create operation?
Used to create a new variable and set its initial value
What is a CRUD read operation?
Used to retrieve the value of a variable
What is a CRUD update operation?
Used to change the value of a variable
What is a CRUD delete operation?
Used to delete a variable
HTTP uses _____ that map to CRUD operations
verbs
HTTP _____ maps to CRUD create
POST
HTTP _____ maps to CRUD read
GET
HTTP _____ maps to CRUD update
PUT, PATCH
HTTP _____ maps to CRUD delete
DELETE
What is an HTTP URI?
Uniform Resource Identifier,
Indicates a particular resource available on an HTTP server
An HTTP request will always include a ______ and a _____
HTTP Verb and a URI
Do REST APIs always have to use HTTP?
No, although HTTP is the most common
HTTP 1xx response codes indicate what?
Informational response code. request was received, continuing process