01. Introduction

Course Weighting

The Basics

Modern web applications should:

Reference Model

                                     HTTP/REST              
   SQL Queries                       <------>               
 DB <------>   HTTP Server     . API          API . Browser 
             (Node.JS/Express) .                  .         
                                      ------->              
                                  Static Resources          

URIs and URLs

URI: Uniform Resource Identifier. String which identifies a resource.

URL: Uniform Resource Locator: URI with an access mechanism specified.

scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]

APIs

API can accept parameter information via multiple methods:

APIs will usually use all three.

REST: Representational State Transfer

A way for developers to use HTTP methods explicitly and consistently in accordance with HTTP protocol definitions (counter-example: GET /path/user?id=1&action=delete; GET requests should never modify data)

CRUD