SlideShare a Scribd company logo
WP REST API
intro / terms / logic / useage
tomhermans.com
Hi, I’m Tom
You might know me of …
Sony
Telenet
freelance WP development
get in touch : tomhermans.com
Question Time
term : API : Application Program Interface
agreed set of standardized ways
that a particular piece of software can be used;
the rules defined for its interaction with the wider world,
which govern how other pieces of software can talk to a
program
and how it will respond.
term : JSON: JavaScript Object Notation
a way to store information in an organized, easy-to-access manner.
In a nutshell, it gives us a human-readable collection of data that we can access in
a really logical manner.
var jason = {
"age" : "24",
"gender" : "male"
};
term : SPA : Single Page Application
is a web application or web site that fits on a single web page with the goal of
providing a more fluent user experience
The page does not reload at any point in the process.
WP REST API : A bit of history
WP API’s
XML-RPC & friends (atom..)
XML remote procedure call
mobile app
admin-ajax
lightweight routing layer
responds w/ JSON
more dev tool - see previous presentation
RSS
open standard syndication format
RESTful API’s
Twitter
Facebook
WordPress.com
Stripe
.. many more
What is REST ?
REST = representational state transfer
RESTful systems :
● communicate via HTTP
● same HTTP verbs (GET, POST, PUT, DELETE, etc.)
like web browsers use
● to retrieve web pages and to send data to remote servers.
REST Examples
Pretty much everyone who claims to have a REST API, in fact, does not.
Exception:
WWW - the World Wide Web
https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm
How is WWW restful ?
Does your browser (the client)
know whether it’s displaying a banking website or a casual game?
Nope.
It just utilizes standard media types (HTML, CSS, JS .. )
The web doesn’t know whether it is serving you a website for a bank or a game.
How does a HTTP request look like ?
so, REST uses HTTP to CRUD
HTTP to CREATE data : POST
HTTP to READ data : GET
HTTP to UPDATE data : PUT (with an existing URI)
HTTP to DELETE data : DELETE
Example sites
https://feelingrestful.com/
http://quotesondesign.com/
http://www.michaelbromley.co.uk/
http://qz.com
Calypso / WordPress.com
What is Calypso
Calypso = frontend admin for WP, written in JS with REST API
to be used to read/write for WP.com and jetpack sites
1. better user experience
- faster & being able to manage multiple sites
2. better dev experience
- better tooling + how they deal with JS
Calypso how
How does Calypso work ?
> in a nutshell:
Connects to WP.com via node.js,
loads rest of JS, loaded async
controllers render React components
Why is Calypso interesting ?
interesting if you want to build a SPA based on WP REST API
Do You:
1. have a lot of user interaction ?
2. need quick transitions between interactions ?
3. have multiple front ends ? web/mobile/desktop, powered by same data
different mindset, user controls page content with interactions
DEMO time
So ...
this is a start, obviously
Different paradigm,
different mindset,
different useage,
different tooling
Can I already use it ?
Yes, but ..
think about
SEO,
server-side rendering,
JS dependencies, etc ..
Question Time
More questions ?
@tomhermans
tomhermans.com/contact

More Related Content

Viewers also liked

Sales ERP
Sales ERPSales ERP
Sales ERPAspelec
 
Espresso 1 lez.3 att.8 parole difficili
Espresso 1 lez.3 att.8 parole difficiliEspresso 1 lez.3 att.8 parole difficili
Espresso 1 lez.3 att.8 parole difficili
Università Complutense de Madrid - Vivere l'italiano
 
Lansing Teen Challenge-Fundraising Plan
Lansing Teen Challenge-Fundraising PlanLansing Teen Challenge-Fundraising Plan
Lansing Teen Challenge-Fundraising Plan
lwtmoonpainter
 
Not Just Public Speaking
Not Just Public SpeakingNot Just Public Speaking
Not Just Public Speaking
Gina Roper
 
Thomas Smale Speaking at DCBKK 2016 in Bangkok, Thailand
Thomas Smale Speaking at DCBKK 2016 in Bangkok, ThailandThomas Smale Speaking at DCBKK 2016 in Bangkok, Thailand
Thomas Smale Speaking at DCBKK 2016 in Bangkok, Thailand
Thomas Smale
 
Differenza tra WordPress.org e WordPress.com
Differenza tra WordPress.org e WordPress.comDifferenza tra WordPress.org e WordPress.com
Differenza tra WordPress.org e WordPress.com
Olegs Belousovs
 
WordPress Facilissimo: guida base
WordPress Facilissimo: guida base WordPress Facilissimo: guida base
WordPress Facilissimo: guida base
Flavius-Florin Harabor
 
Senior Project on Women's Education in Pakistan and Afghanistan
Senior Project on Women's Education in Pakistan and AfghanistanSenior Project on Women's Education in Pakistan and Afghanistan
Senior Project on Women's Education in Pakistan and Afghanistan
agoodman10
 
Führungskultur im digitalen Zeitalter - Jan Brecke
Führungskultur im digitalen Zeitalter - Jan BreckeFührungskultur im digitalen Zeitalter - Jan Brecke
Führungskultur im digitalen Zeitalter - Jan Brecke
Corporate Startup Summit
 
Sap MM Technofunctional Overview
Sap MM Technofunctional OverviewSap MM Technofunctional Overview
Sap MM Technofunctional OverviewNitin Mohan
 
Moving From The Reactive Organisation To The Pre-Emptive
Moving From The Reactive Organisation To The Pre-EmptiveMoving From The Reactive Organisation To The Pre-Emptive
Moving From The Reactive Organisation To The Pre-Emptive
Paul Taylor
 
Resume'
Resume'Resume'
Resume'
Karthik Reddy
 
Ankita_Harmalkar_resume_electrical_fulltime1
Ankita_Harmalkar_resume_electrical_fulltime1Ankita_Harmalkar_resume_electrical_fulltime1
Ankita_Harmalkar_resume_electrical_fulltime1Ankita Harmalkar
 

Viewers also liked (16)

Sales ERP
Sales ERPSales ERP
Sales ERP
 
Espresso 1 lez.3 att.8 parole difficili
Espresso 1 lez.3 att.8 parole difficiliEspresso 1 lez.3 att.8 parole difficili
Espresso 1 lez.3 att.8 parole difficili
 
NAS-at-glance-A4
NAS-at-glance-A4NAS-at-glance-A4
NAS-at-glance-A4
 
Lansing Teen Challenge-Fundraising Plan
Lansing Teen Challenge-Fundraising PlanLansing Teen Challenge-Fundraising Plan
Lansing Teen Challenge-Fundraising Plan
 
HRMS
HRMSHRMS
HRMS
 
Not Just Public Speaking
Not Just Public SpeakingNot Just Public Speaking
Not Just Public Speaking
 
Thomas Smale Speaking at DCBKK 2016 in Bangkok, Thailand
Thomas Smale Speaking at DCBKK 2016 in Bangkok, ThailandThomas Smale Speaking at DCBKK 2016 in Bangkok, Thailand
Thomas Smale Speaking at DCBKK 2016 in Bangkok, Thailand
 
Differenza tra WordPress.org e WordPress.com
Differenza tra WordPress.org e WordPress.comDifferenza tra WordPress.org e WordPress.com
Differenza tra WordPress.org e WordPress.com
 
WordPress Facilissimo: guida base
WordPress Facilissimo: guida base WordPress Facilissimo: guida base
WordPress Facilissimo: guida base
 
Senior Project on Women's Education in Pakistan and Afghanistan
Senior Project on Women's Education in Pakistan and AfghanistanSenior Project on Women's Education in Pakistan and Afghanistan
Senior Project on Women's Education in Pakistan and Afghanistan
 
Führungskultur im digitalen Zeitalter - Jan Brecke
Führungskultur im digitalen Zeitalter - Jan BreckeFührungskultur im digitalen Zeitalter - Jan Brecke
Führungskultur im digitalen Zeitalter - Jan Brecke
 
Sap MM Technofunctional Overview
Sap MM Technofunctional OverviewSap MM Technofunctional Overview
Sap MM Technofunctional Overview
 
Moving From The Reactive Organisation To The Pre-Emptive
Moving From The Reactive Organisation To The Pre-EmptiveMoving From The Reactive Organisation To The Pre-Emptive
Moving From The Reactive Organisation To The Pre-Emptive
 
Resume_Ronak Dhalawat
Resume_Ronak DhalawatResume_Ronak Dhalawat
Resume_Ronak Dhalawat
 
Resume'
Resume'Resume'
Resume'
 
Ankita_Harmalkar_resume_electrical_fulltime1
Ankita_Harmalkar_resume_electrical_fulltime1Ankita_Harmalkar_resume_electrical_fulltime1
Ankita_Harmalkar_resume_electrical_fulltime1
 

Similar to Intro the WordPress REST API by tomhermans

Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
Mandakini Kumari
 
Switch to Backend 2023
Switch to Backend 2023Switch to Backend 2023
Introduction to REST and the Restlet Framework
Introduction to REST and the Restlet FrameworkIntroduction to REST and the Restlet Framework
Introduction to REST and the Restlet Framework
Philip Johnson
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
adeppathondur
 
Build APIs With Kapow Mashup Server
Build APIs With Kapow Mashup ServerBuild APIs With Kapow Mashup Server
Build APIs With Kapow Mashup Server
Andreas Krohn
 
Microsoft Web Technology Stack
Microsoft Web Technology StackMicrosoft Web Technology Stack
Microsoft Web Technology Stack
Lushanthan Sivaneasharajah
 
Best And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and MicrosoftBest And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and Microsoft
Josh Holmes
 
How to Create a Headless WordPress Site with ReactJs.pdf
How to Create a Headless WordPress Site with ReactJs.pdfHow to Create a Headless WordPress Site with ReactJs.pdf
How to Create a Headless WordPress Site with ReactJs.pdf
WPWeb Infotech
 
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code CampDoing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code CampChris Love
 
REST full API Design
REST full API DesignREST full API Design
REST full API Design
Christian Guenther
 
webdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxwebdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptx
learnEnglish51
 
NodeJS - Creating a Restful API
NodeJS - Creating a Restful APINodeJS - Creating a Restful API
NodeJS - Creating a Restful API
Rogério Rodrigues
 
REST Presentation
REST PresentationREST Presentation
REST Presentation
Alexandros Marinos
 
Learning subjects for junior level developers at Skitsanos Inc.
Learning subjects for junior level developers at Skitsanos Inc.Learning subjects for junior level developers at Skitsanos Inc.
Learning subjects for junior level developers at Skitsanos Inc.Evgenios Skitsanos
 
AMAN .PPT.pptx
AMAN .PPT.pptxAMAN .PPT.pptx
AMAN .PPT.pptx
AmandeepWebthinknext
 
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
Alessandro Nadalin
 
Crash Course HTML/Rails Slides
Crash Course HTML/Rails SlidesCrash Course HTML/Rails Slides
Crash Course HTML/Rails Slides
Udita Plaha
 
REST APIs in the context of single-page applications
REST APIs in the context of single-page applicationsREST APIs in the context of single-page applications
REST APIs in the context of single-page applications
yoranbe
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web ArchitectureChamnap Chhorn
 
Modified REST Presentation
Modified REST PresentationModified REST Presentation
Modified REST Presentation
Alexandros Marinos
 

Similar to Intro the WordPress REST API by tomhermans (20)

Web services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGigWeb services soap and rest by mandakini for TechGig
Web services soap and rest by mandakini for TechGig
 
Switch to Backend 2023
Switch to Backend 2023Switch to Backend 2023
Switch to Backend 2023
 
Introduction to REST and the Restlet Framework
Introduction to REST and the Restlet FrameworkIntroduction to REST and the Restlet Framework
Introduction to REST and the Restlet Framework
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 
Build APIs With Kapow Mashup Server
Build APIs With Kapow Mashup ServerBuild APIs With Kapow Mashup Server
Build APIs With Kapow Mashup Server
 
Microsoft Web Technology Stack
Microsoft Web Technology StackMicrosoft Web Technology Stack
Microsoft Web Technology Stack
 
Best And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and MicrosoftBest And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and Microsoft
 
How to Create a Headless WordPress Site with ReactJs.pdf
How to Create a Headless WordPress Site with ReactJs.pdfHow to Create a Headless WordPress Site with ReactJs.pdf
How to Create a Headless WordPress Site with ReactJs.pdf
 
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code CampDoing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
 
REST full API Design
REST full API DesignREST full API Design
REST full API Design
 
webdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxwebdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptx
 
NodeJS - Creating a Restful API
NodeJS - Creating a Restful APINodeJS - Creating a Restful API
NodeJS - Creating a Restful API
 
REST Presentation
REST PresentationREST Presentation
REST Presentation
 
Learning subjects for junior level developers at Skitsanos Inc.
Learning subjects for junior level developers at Skitsanos Inc.Learning subjects for junior level developers at Skitsanos Inc.
Learning subjects for junior level developers at Skitsanos Inc.
 
AMAN .PPT.pptx
AMAN .PPT.pptxAMAN .PPT.pptx
AMAN .PPT.pptx
 
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
 
Crash Course HTML/Rails Slides
Crash Course HTML/Rails SlidesCrash Course HTML/Rails Slides
Crash Course HTML/Rails Slides
 
REST APIs in the context of single-page applications
REST APIs in the context of single-page applicationsREST APIs in the context of single-page applications
REST APIs in the context of single-page applications
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Modified REST Presentation
Modified REST PresentationModified REST Presentation
Modified REST Presentation
 

Recently uploaded

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 

Recently uploaded (20)

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 

Intro the WordPress REST API by tomhermans

  • 1. WP REST API intro / terms / logic / useage tomhermans.com
  • 2. Hi, I’m Tom You might know me of … Sony Telenet freelance WP development get in touch : tomhermans.com
  • 4. term : API : Application Program Interface agreed set of standardized ways that a particular piece of software can be used; the rules defined for its interaction with the wider world, which govern how other pieces of software can talk to a program and how it will respond.
  • 5. term : JSON: JavaScript Object Notation a way to store information in an organized, easy-to-access manner. In a nutshell, it gives us a human-readable collection of data that we can access in a really logical manner. var jason = { "age" : "24", "gender" : "male" };
  • 6. term : SPA : Single Page Application is a web application or web site that fits on a single web page with the goal of providing a more fluent user experience The page does not reload at any point in the process.
  • 7. WP REST API : A bit of history
  • 8. WP API’s XML-RPC & friends (atom..) XML remote procedure call mobile app admin-ajax lightweight routing layer responds w/ JSON more dev tool - see previous presentation RSS open standard syndication format
  • 10.
  • 11.
  • 12. What is REST ? REST = representational state transfer RESTful systems : ● communicate via HTTP ● same HTTP verbs (GET, POST, PUT, DELETE, etc.) like web browsers use ● to retrieve web pages and to send data to remote servers.
  • 13. REST Examples Pretty much everyone who claims to have a REST API, in fact, does not. Exception: WWW - the World Wide Web https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm
  • 14. How is WWW restful ? Does your browser (the client) know whether it’s displaying a banking website or a casual game? Nope. It just utilizes standard media types (HTML, CSS, JS .. ) The web doesn’t know whether it is serving you a website for a bank or a game.
  • 15. How does a HTTP request look like ?
  • 16. so, REST uses HTTP to CRUD HTTP to CREATE data : POST HTTP to READ data : GET HTTP to UPDATE data : PUT (with an existing URI) HTTP to DELETE data : DELETE
  • 19. What is Calypso Calypso = frontend admin for WP, written in JS with REST API to be used to read/write for WP.com and jetpack sites 1. better user experience - faster & being able to manage multiple sites 2. better dev experience - better tooling + how they deal with JS
  • 20. Calypso how How does Calypso work ? > in a nutshell: Connects to WP.com via node.js, loads rest of JS, loaded async controllers render React components
  • 21. Why is Calypso interesting ? interesting if you want to build a SPA based on WP REST API Do You: 1. have a lot of user interaction ? 2. need quick transitions between interactions ? 3. have multiple front ends ? web/mobile/desktop, powered by same data different mindset, user controls page content with interactions
  • 23. So ... this is a start, obviously Different paradigm, different mindset, different useage, different tooling
  • 24. Can I already use it ? Yes, but .. think about SEO, server-side rendering, JS dependencies, etc ..
  • 25. Question Time More questions ? @tomhermans tomhermans.com/contact