SlideShare a Scribd company logo
BUILDING REST APIS THAT DON’T
SUCK FOR MODERN DAY SPAS
Adewale Abati
ABATI “ACEKYD” ADEWALE
Web Engineer
Community Manager &
Developer Advocate @
Ingressive
Open source Enthusiast
YouTuber
Gamer & Basketballer
WHO AM I?
@acekyd @ace_kyd
BUILDING REST APIS THAT DON’T SUCK FOR MODERN DAY SPAS
WHAT WE WOULD BE TALKING ABOUT
What are Single Page Applications
How do REST APIs come in
Common Practices for REST API structures.
API Accessibility tips
Documentation tips
Error handling and status codes tips
Differences in building private APIs from experience.
WHAT ARE SINGLE PAGE APPLICATIONS?
A single page application also known as SPA is a web
application or website that interacts with the user by
dynamically rewriting the current page rather than
loading entire new pages from a server.
It does not require page reloading during use by relying on the features
and capabilities of modern web browsers.
WHAT ARE SINGLE PAGE APPLICATIONS?
SINGLE PAGE APPLICATIONS ARE AS A RESULT OF
Modern browsers
JavaScript becoming increasingly powerful
HTML5 capabilities
Heightened focus on user interfaces and experience
COMMON FRAMEWORKS FOR BUILDING SINGLE PAGE APPLICATIONS
COMMON FRAMEWORKS FOR BUILDING SINGLE PAGE APPS
…and many more…
HOW DO REST APIS
COME IN?
A RESTful API is a standard pattern for APIs
that use HTTP requests to GET, PUT, POST
and DELETE data.
HOW DO REST APIS COME IN?
Source:https://msdn.microsoft.com/en-us/magazine/dn463786.aspx
API ACCESSIBILITY TIPS
BUILDING AN ACCESSIBLE API
Users should be able to get up and running with a basic
implementation of your API in about 15 minutes
Think in resources for endpoints.
Think nouns not verbs. Leave verbs to request methods.
Same endpoint structure (plural endpoints) - Be consistent
Avoid breaking changes to existing endpoints.
Performance and speed are important.
THINK IN RESOURCES FOR ENDPOINTS
API ACCESSIBILITY TIPS
NOUNS NOT VERBS. LEAVE VERBS FOR REQUEST METHODS
API ACCESSIBILITY TIPS
AVOID BREAKING CHANGES
API ACCESSIBILITY TIPS
DOCUMENTATION BEST PRACTICES
First entry point for users
Include a tutorial or summary of what can be done with
the API
Include example requests and responses
Use generators or tools to create nice documentation.
Provide information on each endpoint.
DOCUMENTATION BEST PRACTICES
DOCUMENTATION BEST PRACTICES
INCLUDE SUMMARY FOR API
The Twilio REST API quickly highlights all the things you
can do with their API. Giving you an idea of the features
available to you at a glance.
DOCUMENTATION BEST PRACTICES
INCLUDE TUTORIALS WHERE POSSIBLE FOR API
DOCUMENTATION BEST PRACTICES
INCLUDE TUTORIALS WHERE POSSIBLE FOR API
DOCUMENTATION BEST PRACTICES
EXAMPLE REQUESTS AND RESPONSES
COMMON TOOLS FOR MAKING API DOCUMENTATION
DOCUMENTATION BEST PRACTICES
APIDOCjs.com
COMMON TOOLS FOR MAKING API DOCUMENTATION
DOCUMENTATION BEST PRACTICES
swagger.io
COMMON TOOLS FOR MAKING API DOCUMENTATION
DOCUMENTATION BEST PRACTICES
https://spectrum.chat/slate
HANDLING ERRORS, RESPONSES & STATUS CODES
HANDLING ERRORS, RESPONSES & STATUS CODES
Validation - Validate everything
Be consistent with your response format.
Use common status codes with responses
2xx (Success category) - 200 Ok, 201 Created, 204 No content
3xx (Redirection category) - 304 Not Modified
4xx (Client Error category) - 400 Bad Request, 401 Unauthorized, 403
Forbidden, 404 Not Found
5xx (Server Error category) - 500 Internal Server Error, 503 Service
Unavailable.
PRIVATE API
BUILDING A PRIVATE API
Look at UI designs before implementing API
Recommended to have an understanding of how the
frontend app works to better know how to present data
Start with authentication before going deep into the API
features when necessary.
Maintain good documentation.
QUESTIONS?@acekyd @ace_kyd

More Related Content

PDF
apidays LIVE Paris - How to build better and consistent APIs at scale by Sami...
PPTX
Api types
PDF
Application Programming Interface Implementation For Building Software Applic...
PDF
Introduction to APIs
PDF
Ottspott by Apidaze @API Days Paris 2015
PPTX
Api application programming interface
PDF
API as a Growth Tool
PDF
Hybrid Apps, Ionic framework
apidays LIVE Paris - How to build better and consistent APIs at scale by Sami...
Api types
Application Programming Interface Implementation For Building Software Applic...
Introduction to APIs
Ottspott by Apidaze @API Days Paris 2015
Api application programming interface
API as a Growth Tool
Hybrid Apps, Ionic framework

What's hot (20)

PDF
Response Visualizations in Postman
PPTX
On the shoulders of giants Learning About API Design by Looking Backwards
PPTX
Angular Universal
PDF
Building APIs with Node.js and MonogDB
PDF
apidays LIVE Paris - The Augmented API Design Reviewer by Arnaud Lauret
PDF
Top 5 Ways To Increase API Adoption
PDF
APIs for your Business + Stages of the API Lifecycle
PPT
Open APIs and the Semantic Web 2011
PPTX
Progressive Web Apps
PDF
API Architecture
PDF
WordCamp Bucharest 2017
PDF
Your API Deserves More Respect: Make It A Product
PDF
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
PDF
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
PDF
Android Instant Apps testing
PPTX
API Design Approach
PDF
apidays LIVE New York 2021 - Why Software Teams Struggle with API Security Te...
PPT
Hybrid app development
PDF
APIS for Startups - Running your Business Inside Out
PPT
DroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
Response Visualizations in Postman
On the shoulders of giants Learning About API Design by Looking Backwards
Angular Universal
Building APIs with Node.js and MonogDB
apidays LIVE Paris - The Augmented API Design Reviewer by Arnaud Lauret
Top 5 Ways To Increase API Adoption
APIs for your Business + Stages of the API Lifecycle
Open APIs and the Semantic Web 2011
Progressive Web Apps
API Architecture
WordCamp Bucharest 2017
Your API Deserves More Respect: Make It A Product
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
Android Instant Apps testing
API Design Approach
apidays LIVE New York 2021 - Why Software Teams Struggle with API Security Te...
Hybrid app development
APIS for Startups - Running your Business Inside Out
DroidCon 2011: Developing HTML5 and hybrid Android apps using Phonegap
Ad

Similar to Building REST APIs that don't suck for modern day SPAs (20)

PDF
API Testing Interview Preparation and Methods
PDF
INTERFACE, by apidays - How to Win Friends and Influence People with API First
PDF
apidays LIVE Helsinki & North 2022_How to Win Friends and Influence People wi...
PPTX
Api design part 1
PDF
A_Complete_Guide_to_API_Development.pdf
PDF
Practical guide to building public APIs
PPTX
Your API is not a Website!
PDF
JOSA TechTalks - RESTful API Concepts and Best Practices
PDF
API Best Practices
PPTX
Presentaci[on sobre las API Trends en la programación
PDF
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
PDF
RefCard API Architecture Strategy
PPTX
API Documentation.pptx
PPTX
API Documentation.pptx
PPTX
Accidental API developer - the 12 month pregnancy to create new API
PDF
Rebooting APIs at scale
PDF
Things you must know on ruby on rails single page application
PDF
api_101
PDF
The Ultimate Guide to APIs in Web Applications Key Concepts Demystified.pdf
PDF
The Next Step to Build Better APIs — Consistent Data Structure
API Testing Interview Preparation and Methods
INTERFACE, by apidays - How to Win Friends and Influence People with API First
apidays LIVE Helsinki & North 2022_How to Win Friends and Influence People wi...
Api design part 1
A_Complete_Guide_to_API_Development.pdf
Practical guide to building public APIs
Your API is not a Website!
JOSA TechTalks - RESTful API Concepts and Best Practices
API Best Practices
Presentaci[on sobre las API Trends en la programación
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
RefCard API Architecture Strategy
API Documentation.pptx
API Documentation.pptx
Accidental API developer - the 12 month pregnancy to create new API
Rebooting APIs at scale
Things you must know on ruby on rails single page application
api_101
The Ultimate Guide to APIs in Web Applications Key Concepts Demystified.pdf
The Next Step to Build Better APIs — Consistent Data Structure
Ad

More from Abati Adewale (16)

PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
PDF
Web performance as rocket science
PDF
World Festival - Reimagining web development in your browser.pdf
PDF
Reimagining web development in your browser.pdf
PDF
Supercharging your career with Social currency - OSCAFEST 2022.pdf
PDF
JsWorld Conference Online - Improving developer collaboration with CodeSandbox
PDF
Improving developer collaboration with CodeSandbox
PDF
A look into open source in nigeria
PDF
Introduction to Open Source - What, Why and How to Contribute
PDF
Open source - An enabler for the next billion users
PPTX
Finding your place - University of Ilorin
PPTX
Gathered App Demo Slides
PDF
Practical Approach To Contributing To Open Source - Forloop Ibadan
PPT
Meet Alat.ng - Product Hunt Lagos
PDF
Design Considerations For Side Projects - Product Hunt Lagos
PDF
Ajo Africa - Product Hunt Lagos
Plugging AI into everything: Model Context Protocol Simplified.pdf
Web performance as rocket science
World Festival - Reimagining web development in your browser.pdf
Reimagining web development in your browser.pdf
Supercharging your career with Social currency - OSCAFEST 2022.pdf
JsWorld Conference Online - Improving developer collaboration with CodeSandbox
Improving developer collaboration with CodeSandbox
A look into open source in nigeria
Introduction to Open Source - What, Why and How to Contribute
Open source - An enabler for the next billion users
Finding your place - University of Ilorin
Gathered App Demo Slides
Practical Approach To Contributing To Open Source - Forloop Ibadan
Meet Alat.ng - Product Hunt Lagos
Design Considerations For Side Projects - Product Hunt Lagos
Ajo Africa - Product Hunt Lagos

Recently uploaded (20)

PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
System and Network Administration Chapter 2
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
L1 - Introduction to python Backend.pptx
PDF
Nekopoi APK 2025 free lastest update
PPTX
history of c programming in notes for students .pptx
PPTX
Introduction to Artificial Intelligence
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
System and Network Administraation Chapter 3
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
top salesforce developer skills in 2025.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
medical staffing services at VALiNTRY
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
System and Network Administration Chapter 2
Odoo Companies in India – Driving Business Transformation.pdf
L1 - Introduction to python Backend.pptx
Nekopoi APK 2025 free lastest update
history of c programming in notes for students .pptx
Introduction to Artificial Intelligence
Essential Infomation Tech presentation.pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Wondershare Filmora 15 Crack With Activation Key [2025
System and Network Administraation Chapter 3
Operating system designcfffgfgggggggvggggggggg
Odoo POS Development Services by CandidRoot Solutions
Upgrade and Innovation Strategies for SAP ERP Customers
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
top salesforce developer skills in 2025.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
medical staffing services at VALiNTRY

Building REST APIs that don't suck for modern day SPAs

  • 1. BUILDING REST APIS THAT DON’T SUCK FOR MODERN DAY SPAS Adewale Abati
  • 2. ABATI “ACEKYD” ADEWALE Web Engineer Community Manager & Developer Advocate @ Ingressive Open source Enthusiast YouTuber Gamer & Basketballer WHO AM I? @acekyd @ace_kyd
  • 3. BUILDING REST APIS THAT DON’T SUCK FOR MODERN DAY SPAS WHAT WE WOULD BE TALKING ABOUT What are Single Page Applications How do REST APIs come in Common Practices for REST API structures. API Accessibility tips Documentation tips Error handling and status codes tips Differences in building private APIs from experience.
  • 4. WHAT ARE SINGLE PAGE APPLICATIONS? A single page application also known as SPA is a web application or website that interacts with the user by dynamically rewriting the current page rather than loading entire new pages from a server. It does not require page reloading during use by relying on the features and capabilities of modern web browsers.
  • 5. WHAT ARE SINGLE PAGE APPLICATIONS? SINGLE PAGE APPLICATIONS ARE AS A RESULT OF Modern browsers JavaScript becoming increasingly powerful HTML5 capabilities Heightened focus on user interfaces and experience
  • 6. COMMON FRAMEWORKS FOR BUILDING SINGLE PAGE APPLICATIONS COMMON FRAMEWORKS FOR BUILDING SINGLE PAGE APPS …and many more…
  • 7. HOW DO REST APIS COME IN? A RESTful API is a standard pattern for APIs that use HTTP requests to GET, PUT, POST and DELETE data.
  • 8. HOW DO REST APIS COME IN? Source:https://msdn.microsoft.com/en-us/magazine/dn463786.aspx
  • 9. API ACCESSIBILITY TIPS BUILDING AN ACCESSIBLE API Users should be able to get up and running with a basic implementation of your API in about 15 minutes Think in resources for endpoints. Think nouns not verbs. Leave verbs to request methods. Same endpoint structure (plural endpoints) - Be consistent Avoid breaking changes to existing endpoints. Performance and speed are important.
  • 10. THINK IN RESOURCES FOR ENDPOINTS API ACCESSIBILITY TIPS
  • 11. NOUNS NOT VERBS. LEAVE VERBS FOR REQUEST METHODS API ACCESSIBILITY TIPS
  • 12. AVOID BREAKING CHANGES API ACCESSIBILITY TIPS
  • 13. DOCUMENTATION BEST PRACTICES First entry point for users Include a tutorial or summary of what can be done with the API Include example requests and responses Use generators or tools to create nice documentation. Provide information on each endpoint. DOCUMENTATION BEST PRACTICES
  • 14. DOCUMENTATION BEST PRACTICES INCLUDE SUMMARY FOR API The Twilio REST API quickly highlights all the things you can do with their API. Giving you an idea of the features available to you at a glance.
  • 15. DOCUMENTATION BEST PRACTICES INCLUDE TUTORIALS WHERE POSSIBLE FOR API
  • 16. DOCUMENTATION BEST PRACTICES INCLUDE TUTORIALS WHERE POSSIBLE FOR API
  • 17. DOCUMENTATION BEST PRACTICES EXAMPLE REQUESTS AND RESPONSES
  • 18. COMMON TOOLS FOR MAKING API DOCUMENTATION DOCUMENTATION BEST PRACTICES APIDOCjs.com
  • 19. COMMON TOOLS FOR MAKING API DOCUMENTATION DOCUMENTATION BEST PRACTICES swagger.io
  • 20. COMMON TOOLS FOR MAKING API DOCUMENTATION DOCUMENTATION BEST PRACTICES https://spectrum.chat/slate
  • 21. HANDLING ERRORS, RESPONSES & STATUS CODES HANDLING ERRORS, RESPONSES & STATUS CODES Validation - Validate everything Be consistent with your response format. Use common status codes with responses 2xx (Success category) - 200 Ok, 201 Created, 204 No content 3xx (Redirection category) - 304 Not Modified 4xx (Client Error category) - 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found 5xx (Server Error category) - 500 Internal Server Error, 503 Service Unavailable.
  • 22. PRIVATE API BUILDING A PRIVATE API Look at UI designs before implementing API Recommended to have an understanding of how the frontend app works to better know how to present data Start with authentication before going deep into the API features when necessary. Maintain good documentation.