Express
-
What’s the difference between
PUTandPATCH?PUTis a method that allows the client sends data and updates the entire resource.PATCHis a method that allows the client to update partial data without modifying the entire data -
Provide links to 3 services or tools that allow you to “mock” an API for development like
json-server -
Compare and contrast Swagger and APIDoc.js Which HTTP status codes should be sent with each type of (un)successful API call?
- 200s: success
- 400 Bad Request: a generic unsuccessful request
- 401 Unauthorized: the client is not authenticated
- 403 Forbidden: don’t have the permission
- 405 Method not allowed
- 500 Internal server error
- 501 not implemented
-
Compare and contrast SOAP and REST
- SOAP is a XML-based message protocol, while REST is an architectural style
- SOAP uses WSDL for communication between consumer and provider, whereas REST just uses XML or JSON to send and receive data
- SOAP invokes services by calling RPC method, REST just simply calls services via URL path
Document the following Vocabulary Terms
-
Web Server
A web server is a computer that runs websites
-
Express
A minimal and flexible Node.js web application framework
-
Routing
A way of organizing and managing application states
-
WRRC
web request-response cycle
Which 3 things had you heard about previously and now have better clarity on?
- route handlers
- TDD
- NPM
Which 3 things are you hoping to learn more about in the upcoming lecture/demo?
- Be more familar with TDD
- Use middleware function effectively
- Webhooks