Created
June 20, 2017 02:06
-
-
Save fernandojinzenji/476de571d462ef78e17e371393e5b4a7 to your computer and use it in GitHub Desktop.
Week 4, Monday - Questions and Answers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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