Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fernandojinzenji/476de571d462ef78e17e371393e5b4a7 to your computer and use it in GitHub Desktop.
Save fernandojinzenji/476de571d462ef78e17e371393e5b4a7 to your computer and use it in GitHub Desktop.
Week 4, Monday - Questions and Answers
Question 1:
C - post
R - get
U - put
D - delete
Question 2:
200 response ok for a request
403 forbidden access
401 unauthorized
500 internal server error
404 page not found
408 timeout
Question 3:
HTTP headers are components of the HTTP protocol inside of the header section for response and request messages.
- User Agent: define browser version and operational system information
- Authorization: authorization tokens
- Accept: the acceptable content types
- Content Type: define the type of the information that goes inside the body of the request
Question 4:
API (Application Program Interface) is a interface to system integration. Restful APIs allows raw data to be retrieved where
all interface design will be treated by the API consumer.
Question 5:
{
"id": 1,
"name": "Lighthouse Labs Special",
"toppings": ["mushrooms", "pepperoni"],
"size": "large",
"price": 12.20,
"crusttype": "traditional"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment