SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
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

Más contenido relacionado

Destacado

Sales ERP
Sales ERPSales ERP
Sales ERPAspelec
 
Lansing Teen Challenge-Fundraising Plan
Lansing Teen Challenge-Fundraising PlanLansing Teen Challenge-Fundraising Plan
Lansing Teen Challenge-Fundraising Planlwtmoonpainter
 
Not Just Public Speaking
Not Just Public SpeakingNot Just Public Speaking
Not Just Public SpeakingGina 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, ThailandThomas 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.comOlegs Belousovs
 
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 Afghanistanagoodman10
 
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 BreckeCorporate 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-EmptivePaul Taylor
 
Ankita_Harmalkar_resume_electrical_fulltime1
Ankita_Harmalkar_resume_electrical_fulltime1Ankita_Harmalkar_resume_electrical_fulltime1
Ankita_Harmalkar_resume_electrical_fulltime1Ankita Harmalkar
 

Destacado (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 a 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 TechGigMandakini Kumari
 
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 FrameworkPhilip Johnson
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Servicesadeppathondur
 
Build APIs With Kapow Mashup Server
Build APIs With Kapow Mashup ServerBuild APIs With Kapow Mashup Server
Build APIs With Kapow Mashup ServerAndreas Krohn
 
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 MicrosoftJosh 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.pdfWPWeb 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
 
webdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxwebdevelopmentppt-210923044639 (1).pptx
webdevelopmentppt-210923044639 (1).pptxlearnEnglish51
 
NodeJS - Creating a Restful API
NodeJS - Creating a Restful APINodeJS - Creating a Restful API
NodeJS - Creating a Restful APIRogério Rodrigues
 
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
 
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-2011Alessandro Nadalin
 
Crash Course HTML/Rails Slides
Crash Course HTML/Rails SlidesCrash Course HTML/Rails Slides
Crash Course HTML/Rails SlidesUdita 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 applicationsyoranbe
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web ArchitectureChamnap Chhorn
 

Similar a 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
 

Último

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 

Último (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

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