- Describe what REST is.
- Explain why REST is important.
- Create a RESTful Express server.
- Clients are concerned with user interface.
- Servers are concerned with data persistence.
- Clients and servers communicate over a well-defined HTTP contract.
- Clients and servers think about data in terms of resources.
- Clients send HTTP requests to create, read, update, and destroy resources.
- Servers send HTTP responses to indicate the result of these operations.
Turn to your neighbor and summarize the definition REST. Be prepared to share with the class.
- What is in the request body when you
GETall? What are the identifiers in the request URL? - What is in the request body when you
GETone? What are the identifiers in the request URL? - What is in the request body when you
POSTone? What are the identifiers in the request URL? - What is in the request body when you
PATCHone? What are the identifiers in the request URL? - What is in the request body when you
DELETEone? What are the identifiers in the request URL?
- What is in the response body when you
GETall? - What is in the response body when you
GETone? - What is in the response body when you
POSTone? - What is in the response body when you
PATCHone? - What is in the response body when you
DELETEone?
- Turn and talk with your neighbor and discuss why REST is important. Be prepared to share with the class.