~/talk

(Not) Just Another WP REST API Talk

Talkat WordCamp Auckland 2017 · 2017-03-11..03-12· [wordpress, web-platform]
links:none on file
slides:none on file

WordPress includes a REST API in core (merged December 2016) at /wp-json/wp/v2 that returns JSON resources like posts, pages, taxonomies and users; GET requests can include query args such as per_page=100 and ordering by title, while POSTs require authentication. Examples shown: a working AngularJS “tea ordering” front end that reads custom taxonomies and creates orders, and an Alfred workflow that searches docs via the API, demonstrating replacement of slow admin-ajax workflows and real-time site integrations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35What is REST API
  3. 6:42WordPress REST API
  4. 11:52Who is using it
  5. 13:38Websites using it
  6. 14:59Mobile apps
  7. 15:56Finding the URL
  8. 17:05Example Response
  9. 17:51Examples
  10. 23:12Work in Progress
  11. 25:22Alfred Workflow
  12. 26:33Alfred Script
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.