Theory
Theory
HTTP request:
1) Request line
● A method. The method is a one-word command that tells the server what it should
do with the resource. For example, the server could be asked to send the resource to
the client.
● The path component of the URL for the request. The path identifies the resource on
the server.
● The HTTP version number, showing the HTTP specification to which the client has
tried to make the message comply.
2) HTTP headers
Authorization
Content-type
3) Message body
JSON
In Express five different types of middleware: 3rd Party, Router, Application, Error-handling,
and Built-in
Express middleware are functions that execute during the lifecycle of a request to the
Express server
Many-to-Many relationship lets you relate each row in one table to many rows in
another table and vice versa