Creating the API
Create a Resource
Enable CORS
Method Request - API Key Required
Integration Request - Lambda Function
Callback Function
Preparing Data
Errors
Custom Endpoints
Register the Route
For /posts resource created a post method
Integration Request - Lambda Function
Using WordPress REST API, AngularJS, S3, AWS Gateway API, AWS Lambda & AWS Dynamodb
Why AngularJs? Easy prototyping.
What We Get
Single Post
Loop for Posts
Calling the WP REST API
Routing
Random WP Plugin
Base Template
Hang in there, almost done
So far we’ve needed to keep WordPress hosted, let’s change that.
Create a publish post hook
Filter post_link
Much Better
Update the route
After deploying the API.. Update the URL
Spread our cat blog joy.
Because, who doesn't like cats