reading-notes

Express

Review, Research, and Discussion

What’s the difference between PUT and PATCH?

Provide links to 3 services or tools that allow you to “mock” an API for development like json-server

Compare and contrast SOAP and ReST

Document the following Vocabulary Terms

Preparation Materials

Using middleware

Express is a routing and middleware web framework that has minimal functionality of its own: An Express application is essentially a series of middleware function calls.

Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle. The next middleware function is commonly denoted by a variable named next.

Middleware functions can perform the following tasks:

Application-level middleware

This example shows a middleware function with no mount path. The function is executed every time the app receives a request.

var express = require('express')
var app = express()

app.use(function (req, res, next) {
  console.log('Time:', Date.now())
  next()
})

ex