View on GitHub

Matt's homepage

Bookmark this to keep an eye on new things I am learning.

References

Assorted reference information

Return Home

Symantic Versioning

Uses 3 numbers, seperated by a period. e.g. 1.2.4

Breaking changes . New features . Bug fixes

^ back to top ^

Express

Definitions

^ back to top ^

Express Middleware

^ back to top ^

HTTP Methods

Method Code Purpose
GET 200 Fetch data
POST 201 Create data
PUT 200 Update record
PATCH 204 Update partial record
DELETE 204 Deleted record
ERROR 400 Bad request
ERROR 500 Signifies server error

Examples

Code Implementation
200 Get record or record
200 Full record updated
201 Record added
202 Request received for processing, but not completed
204 Partial record update completed (No content returned)
204 Record deleted (No content returned)
206 Partial content
300 Redirect
400 Rejected API call - missing required header
401 Unauthorised request
403 Forbidden
404 Record not found
408 Request timeout
409 Rejected API call - Operation in progress
422 Rejected API call - Invalid header/data sent
500 Internal server error
503 Service / Server unavailable (e.g maintenance)

^ back to top ^

Model - View - Controller (MVC) Pattern

Can be server, client, or both.

Model
Data that is required to populate a page or control (partial)
View
The page, or partial page, which will display the information. (Often EJS)
Controller
Needed to render model data to a view, or partial. Which handles any API calls for CRUD or to external sites, and for managing any dynamic functionality on the web page.

^ back to top ^

Array Methods

arrays

^ back to top ^

API Terms

Definition

^ back to top ^

Endpoint

^ back to top ^

HTTP API Methods

^ back to top ^

Request

^ back to top ^

Response

^ back to top ^

Status Codes

^ back to top ^

Authentication

^ back to top ^

Parameters

^ back to top ^

Headers

^ back to top ^

Authorisation

^ back to top ^

Rate Limiting

^ back to top ^

API Key

^ back to top ^

JSON

^ back to top ^

Webhook

^ back to top ^

oAuth

^ back to top ^