SlideShare a Scribd company logo
Submit Search
Upload
Login
Signup
Practical REST API
Report
Aki Björklund
Follow
CEO, Web Technology Consultant, WordPress Expert, Web Developer at H1
May. 11, 2016
•
0 likes
•
498 views
1
of
32
Practical REST API
May. 11, 2016
•
0 likes
•
498 views
Download Now
Download to read offline
Report
Technology
Presentation at WordCamp Finland 2016
Aki Björklund
Follow
CEO, Web Technology Consultant, WordPress Expert, Web Developer at H1
Recommended
Building Usable REST APIs. By Javier Ramirez, teowaki. FOWA London
javier ramirez
954 views
•
60 slides
Your API is not a Website!
Apigee | Google Cloud
1.2K views
•
27 slides
Gearman Add To Your Project
Mindfire Solutions
1.1K views
•
15 slides
Moving From a Selenium Grid to the Cloud - A Real Life Story
Sauce Labs
2.6K views
•
24 slides
Your time saving front end workflow
Icalia Labs
1.3K views
•
28 slides
Common design principles and design patterns in automation testing
KMS Technology
1.2K views
•
65 slides
More Related Content
What's hot
AWS Tech Summit - Berlin 2011 - Running Java Applications on AWS
Amazon Web Services
1.6K views
•
97 slides
Automation Zaman Now
Ibnu Fajar Yunardi
451 views
•
24 slides
Building High Performance Web Applications
Jeff Whelpley
780 views
•
22 slides
Ruby on Rails and AWS Elastic Beanstalk
Nathalie Steinmetz
4K views
•
15 slides
Alexandre Roman - How Pivotal Cloud Foundry can help you run Spring at scale ...
Codemotion
81 views
•
22 slides
Usable REST APIs. Jrubyconf Edition. Javier Ramirez @ teowaki
javier ramirez
1.5K views
•
38 slides
What's hot
(20)
AWS Tech Summit - Berlin 2011 - Running Java Applications on AWS
Amazon Web Services
•
1.6K views
Automation Zaman Now
Ibnu Fajar Yunardi
•
451 views
Building High Performance Web Applications
Jeff Whelpley
•
780 views
Ruby on Rails and AWS Elastic Beanstalk
Nathalie Steinmetz
•
4K views
Alexandre Roman - How Pivotal Cloud Foundry can help you run Spring at scale ...
Codemotion
•
81 views
Usable REST APIs. Jrubyconf Edition. Javier Ramirez @ teowaki
javier ramirez
•
1.5K views
Update Smart: Use a Staging Site!
Meagan Hanes
•
143 views
PHPNW14 - Getting Started With AWS
benwaine
•
635 views
PuppetConf 2016: Site Launch Automation: From Days to Minutes – Kristen Crawf...
Puppet
•
241 views
Are you ready to adopt GraphQL?
Siva Prasad Rao Janapati
•
36 views
Pain Free Frontend Development
Vanessa Böhner
•
181 views
How to build webapps with tools
Pasindu Perera
•
155 views
SPA Flask Vue
Vanessa Böhner
•
696 views
Automation Best Practices
Sauce Labs
•
6K views
Glimpse of Loops Vs Set
Mindfire Solutions
•
701 views
Helm your way with Kubernetes
Ana-Maria Mihalceanu
•
252 views
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Amazon Web Services
•
1.8K views
HTBYOOFIYRHT RubyConf
Sandy Vanderbleek
•
440 views
Immutability: from code to infrastructure, the way to scalability - Breizhca...
Quentin Adam
•
2.7K views
Is Serverless The New Swiss Cheese?
Chase Douglas
•
207 views
Similar to Practical REST API
Crafting APIs
Tatiana Al-Chueyr
442 views
•
59 slides
Don't worry be API with Slim framework and Joomla
Pierre-André Vullioud
4.4K views
•
30 slides
Azure API Management - why should I care?
Jouni Heikniemi
1.8K views
•
63 slides
Progressive Web Apps - Overview & Getting Started
Gaurav Behere
282 views
•
14 slides
Php Conference Brazil - Phalcon Giant Killer
Jackson F. de A. Mafra
648 views
•
57 slides
PHP on Windows 2008
jorke
1.1K views
•
28 slides
Similar to Practical REST API
(20)
Crafting APIs
Tatiana Al-Chueyr
•
442 views
Don't worry be API with Slim framework and Joomla
Pierre-André Vullioud
•
4.4K views
Azure API Management - why should I care?
Jouni Heikniemi
•
1.8K views
Progressive Web Apps - Overview & Getting Started
Gaurav Behere
•
282 views
Php Conference Brazil - Phalcon Giant Killer
Jackson F. de A. Mafra
•
648 views
PHP on Windows 2008
jorke
•
1.1K views
P H P Framework
Animesh Kumar
•
890 views
WordPress and Client Side Web Applications WCTO
Roy Sivan
•
1K views
Running PHP on Windows Technical Overview
Wes Yanaga
•
5.5K views
WP REST API - Building a simple Web Application
Edmund Chan
•
38 views
How to create a WordPress not understanding WordPress, so more on the headles...
Krzysztof (Chris) Ozog
•
124 views
Matt Gauger - Lamp vs. the world - MKE PHP Users Group - December 14, 2010
Matt Gauger
•
1.8K views
Caching strategy and apc
Võ Duy Tuấn
•
2.1K views
Creating a World-Class RESTful Web Services API
David Keener
•
4.8K views
REST API Basics
Tharindu Weerasinghe
•
122 views
Behavior & Specification Driven Development in PHP - #OpenWest
Joshua Warren
•
1.4K views
Scaling PHP Applications with Zend Platform
Shahar Evron
•
2.2K views
2013 - Dustin whittle - Escalando PHP en la vida real
PHP Conference Argentina
•
3.6K views
Wordcamp Toronto Presentation
Roy Sivan
•
942 views
A Good PHP Framework For Beginners Like Me!
Muhammad Ghazali
•
12.2K views
Recently uploaded
"Stateful app as an efficient way to build dispatching for riders and drivers...
Fwdays
48 views
•
46 slides
Accelerating Data Science through Feature Platform, Transformers and GenAI
FeatureByte
127 views
•
44 slides
Take Control of Podcasting thanks to Open Source and Podcasting 2.0
🎙 Benjamin Bellamy
80 views
•
59 slides
"Data Mesh in Kubernetes", Andrii Syniuk
Fwdays
17 views
•
17 slides
UiPath Tips and Techniques for Debugging - Session 3
DianaGray10
57 views
•
9 slides
"Building Asynchronous SOA for Modern Applications", Sai Pragna Etikyala
Fwdays
33 views
•
24 slides
Recently uploaded
(20)
"Stateful app as an efficient way to build dispatching for riders and drivers...
Fwdays
•
48 views
Accelerating Data Science through Feature Platform, Transformers and GenAI
FeatureByte
•
127 views
Take Control of Podcasting thanks to Open Source and Podcasting 2.0
🎙 Benjamin Bellamy
•
80 views
"Data Mesh in Kubernetes", Andrii Syniuk
Fwdays
•
17 views
UiPath Tips and Techniques for Debugging - Session 3
DianaGray10
•
57 views
"Building Asynchronous SOA for Modern Applications", Sai Pragna Etikyala
Fwdays
•
33 views
Recommendation Modeling with Impression Data at Netflix
Jiangwei Pan
•
95 views
GDSC Cloud Lead Presentation.pptx
AbhinavNautiyal8
•
92 views
alfred-product-research-proposal.pdf
AlfredSuratos
•
24 views
Salesforce Miami User Group Event - 3rd Quarter
SkyPlanner
•
34 views
Reward Innovation for long-term member satisfaction
Jiangwei Pan
•
46 views
Omada Pitch Deck
sjcobrien
•
31 views
Mastering Automation Quality: Exploring UiPath's Test Suite for Seamless Test...
DianaGray10
•
44 views
Solving today’s Traffic Problems with Sustainable Ride Hailing Solution
On Demand Clone
•
44 views
Manage and Release Changes Easily and Collaboratively with DevOps Center - Sa...
Amol Dixit
•
19 views
Deep Dive Microsoft Viva Insights - Collabdays Bletchley Park 2023
Chirag Patel
•
18 views
RemeOs science and clinical data 20230926_PViv2 (4).pptx
PetrusViitanen1
•
22 views
Product Research Presentation-Maidy Veloso.pptx
MaidyVeloso
•
43 views
The Flutter Job Market At The Moment
Ahmed Abu Eldahab
•
44 views
Webhook Testing Strategy
Dimpy Adhikary
•
99 views
Practical REST API
1.
Practical REST API Why
admin-ajax.php should be avoided and how Aki Björklund CTO,H1 @akibjorklund
2.
Communication between JavaScript
and PHP is done with Ajax
3.
Historically that is
done in WordPress by calling /wp-admin/admin-ajax.php
4.
Why admin-ajax.php is
bad?
5.
1. Inefficient
6.
2. Not cached
7.
3. No infrastructure like
authentication, data validation, …
8.
4. Ad hoc: messy
9.
WordPress REST API
in core from 4.4
10.
There are no
built-in endpoints yet
11.
Unless you install
the REST API plugin
12.
In many cases
no need to write any PHP to do a lot.
13.
But what can
you do just with what the core already has?
14.
Example: Comment Reactions
16.
Converting admin-ajax.php to REST
API
17.
Before
22.
After
27.
Best practice is
to implement what you just saw as a REST Controller. Currently available only with the REST API plugin.
28.
Summary
29.
Use the REST
API instead of admin-ajax.php
30.
It’s faster and
cleaner
31.
It’s also both
easy to implement and migrate to
32.
. Aki Björklund CTO,H1 @akibjorklund