Reading-Notes
code fellows 401
Read: 02 - Express
What’s the difference between PUT and PATCH?
The __PUT__ method takes and replaces saved data. The __Patch__ method updates a property of data.
Links to services or tools that allow you to “mock” an API for development like json-server
Compare and contrast Swagger and APIDoc.js
Swagger is cloud based and open source.
(un)successful API calls
- 100 Continue
- 101 Switching Protocols
- 103 Early Hints
- 200 OK
- 201 Created
- 202 Accepted
- 203 Non-Authoritative Information
- 204 No Content
- 205 Reset Content
- 206 Partial Content
- 300 Multiple Choices
- 301 Moved Permanently
- 302 Found
- 303 See Other
- 304 Not Modified
- 307 Temporary Redirect
- 308 Permanent Redirect
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Payload Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I’m a teapot
- 422 Unprocessable Entity
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 500 Internal Server Error
- 501 Not Implemented
- 502 Bad Gateway
- 503 Service Unavailable
- 504 Gateway Timeout
- 505 HTTP Version Not Supported
- 506 Variant Also Negotiates
- 507 Insufficient Storage
- 508 Loop Detected
- 510 Not Extended
- 511 Network Authentication Required
SOAP and ReST
__SOAP__ or Simple Object Access Protocol is a protocal that only works with XML formats. __ReST__ will also work with HTML, plain text, and JSON.
Vocabulary
- Web Server - A web server is a computer that runs websites. It’s a computer program that distributes web pages as they are requisitioned.
- Express - Express.js is a Node.js framework. Creates routes and route handlers.
- Routing - Routing is how Web API matches a URI to an action.
- WRRC - The Web Request Response Cycle is the process a client goes through when asking a server for data.