liveBook · Manning

REST

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A REST API is a web API that exposes resources and operations through HTTP according to REST architectural constraints.

A REST API exposes application resources and operations through HTTP requests and responses. AWS services are accessible through HTTPS APIs, while CLI tools and SDKs provide more convenient interfaces over those APIs. section 4.0 section 16.3.2

A small image-processing API can organize operations around resource-oriented routes:

  • POST /image creates an image-processing request. section 16.3.2
  • GET /image/:id returns the current state of a specified process. section 16.3.2
  • POST /image/:id/upload uploads a file for that process. section 16.3.2

Imagery service

Node.js and Express handle REST routes on EC2 instances behind a load balancer. DynamoDB stores image-process state, S3 stores uploaded files, and workers process images separately. A POST request creates an item and returns its identifier and state; a GET request reads the item and returns its mapped representation. section 16.3.2

GET / HTTP/1.1                       #1
Host: BucketName.s3.amazonaws.com    #2
Authorization: [...]                 #3

A raw HTTP request shows the method, endpoint host, and authorization details used to access an AWS resource. section 4.0

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Implements three Express routes and their AWS interactions, but leaves framework internals and broader REST constraints unexplained.
Examples
Uses S3 listing requests and an Imagery image-processing service with creation, status, and upload routes.
What it assumes
Assumes basic HTTP familiarity while introducing AWS APIs, raw HTTPS requests, CLI tools, SDKs, and service endpoints.
What you can do after
Apply it via Node.js and Express to build routes backed by DynamoDB and S3.
How it connects
Connects REST APIs with HTTP, HTTPS, Express, Node.js, EC2, load balancers, DynamoDB, S3, SQS, CLI tools, and SDKs.

Also explained in

Compare how 22 books explain REST →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.