SlideShare a Scribd company logo
Unnamed Project
Original faults and profits
ExpressJS: API versioning
- New database architecture
- iOS builds are not so easy to change
- Old iOS build should be supported as well as new versions
Why did we initiate API versioning?
ExpressJS: API versioning
previous flow
request middlewares responsecontroller
model
route
- New features should be implemented into API V2
- API V1 shouldn’t know about database changes
- API V1 will not be updated with new features
ExpressJS: API versioning
requirements
ExpressJS: API versioning
new flow to fit requirements
request
middlewares
response
controller V1
model
route V1
route V2 controller V2
response service
(mapper)
ExpressJS: API versioning
new flow to fit requirements - response mapper
origin url?response data process response
emulate v1 response
(map)
response service / mapper
/api/v1
/api/v2
- Create V1 and V2 routes
- Move previous controller actions to V2 folder (controllers/v2)
- Leave entities that should be changed in V1
- Convert / Migrate existing data to get it suitable with new database
structure
ExpressJS: API versioning
new flow to fit requirements
Name: Roman Sachenko
Email: roman.sachenko@gmail.com
Skype: roman.sachenko
DA-14 2016

More Related Content

PPTX
How to – rest api proxy to soap webservice
PDF
Building restful apis with laravel
PDF
Postman: An Introduction for API Ops Professionals
PPTX
Demystifying the salesforce reports api
PPTX
Spring cloud config manage configuration
PPTX
Anypoint platform for api
PDF
Planet of the APIs: Monitoring Transactions in the Wild
PDF
Aqa talk yuriy oprysk
How to – rest api proxy to soap webservice
Building restful apis with laravel
Postman: An Introduction for API Ops Professionals
Demystifying the salesforce reports api
Spring cloud config manage configuration
Anypoint platform for api
Planet of the APIs: Monitoring Transactions in the Wild
Aqa talk yuriy oprysk

What's hot (19)

PPTX
Quantum API 1.1 proposal
PPTX
What's New in Mulesoft Anypoint 7.4
PDF
Postman 101 for Students
PDF
Sendspace Api Guide
PDF
[GDSC-ADYPU] APIs 101 with Postman
PDF
Rails api + JS app
PDF
Emulators as an Emerging Best Practice for API providers
PPTX
Api Testing
PDF
Postman Galaxy Tour - Keynote Presentation
PPTX
Secure runtime properties mule4
DOCX
Guo Shi Li-One Page-SDE
PPTX
Postman and Fiddler for QA. Vitalii Kovaliuk
PPTX
Integration with Microsoft SharePoint using Mule ESB
PPT
KaTe AMQP Adapter for SAP Process Orchestration / SAP Process Integration
PPT
Rails engines
PPTX
Tech Talk Live - 5.2 REST APIs
KEY
Service Oriented Applications
PPTX
PDF
Postman Galaxy Tour: San Francisco - Workshop Presentation
Quantum API 1.1 proposal
What's New in Mulesoft Anypoint 7.4
Postman 101 for Students
Sendspace Api Guide
[GDSC-ADYPU] APIs 101 with Postman
Rails api + JS app
Emulators as an Emerging Best Practice for API providers
Api Testing
Postman Galaxy Tour - Keynote Presentation
Secure runtime properties mule4
Guo Shi Li-One Page-SDE
Postman and Fiddler for QA. Vitalii Kovaliuk
Integration with Microsoft SharePoint using Mule ESB
KaTe AMQP Adapter for SAP Process Orchestration / SAP Process Integration
Rails engines
Tech Talk Live - 5.2 REST APIs
Service Oriented Applications
Postman Galaxy Tour: San Francisco - Workshop Presentation
Ad

Viewers also liked (20)

PPTX
History of afghanistan railway network
PDF
Doc092
PDF
Podsumowanie pomocy humanitarnej 2015 vfinal
PDF
Odf sprawozdanie finansowe_2015
PPTX
CCCJ Presentation to the International Association of University Presidents (...
DOCX
5th march English lesson
PDF
Sprawozdanie merytoryczne 2012
PPTX
Aaah 2
PPT
Course materials chapter 5 winter 2014
DOCX
quà tặng bộ số để bàn,biểu trưng số kỷ niệm ngày thành lập
PPT
Carranque Roman villa
PDF
Doc014
PPTX
Pascal Gielen @ skills21kunst
PPTX
nes recruitment capabilities
PPTX
Express js clean-controller
PDF
Odf report-massacre-in-odessa-pl
PPT
Krymskaya voyna 1853-1856
PDF
Usb atmintuko kodavimas
PDF
Windows xp servisu_aprasymas
PDF
06.02.2014 odf ukraine_military_scenario_pl
History of afghanistan railway network
Doc092
Podsumowanie pomocy humanitarnej 2015 vfinal
Odf sprawozdanie finansowe_2015
CCCJ Presentation to the International Association of University Presidents (...
5th march English lesson
Sprawozdanie merytoryczne 2012
Aaah 2
Course materials chapter 5 winter 2014
quà tặng bộ số để bàn,biểu trưng số kỷ niệm ngày thành lập
Carranque Roman villa
Doc014
Pascal Gielen @ skills21kunst
nes recruitment capabilities
Express js clean-controller
Odf report-massacre-in-odessa-pl
Krymskaya voyna 1853-1856
Usb atmintuko kodavimas
Windows xp servisu_aprasymas
06.02.2014 odf ukraine_military_scenario_pl
Ad

Similar to Express js api-versioning (20)

PPTX
07 restful webservices design
PDF
WordCamp Wilmington 2017 WP-API Why?
PPTX
The next step from Microsoft - Vnext (Srdjan Poznic)
PDF
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
PPTX
Http and REST APIs.
PPTX
Managing the SharePoint 2010 Application Lifecycle - Part 1
PDF
ASP.NET Web API Interview Questions By Scholarhat
PDF
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
PPTX
Liquibase
PPTX
Getting started with microsoft office 365 share point online development
DOCX
MindyJeanneConsultant
PDF
Design & Deploy a data-driven Web API in 2 hours
PDF
Is Enterprise Java Still Relevant (JavaOne 2015 session)
PPTX
Building Your First App with MongoDB
PDF
Extending_EBS_12_1_3_with_APEX_5_0_COLLABORATE16
PPT
Elefrant [ng-Poznan]
PDF
Getting Started with the Node.js LoopBack APi Framework
PPTX
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
PPT
Scalable Web Architectures and Infrastructure
DOCX
RichardChauvetShortResume2015
07 restful webservices design
WordCamp Wilmington 2017 WP-API Why?
The next step from Microsoft - Vnext (Srdjan Poznic)
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
Http and REST APIs.
Managing the SharePoint 2010 Application Lifecycle - Part 1
ASP.NET Web API Interview Questions By Scholarhat
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
Liquibase
Getting started with microsoft office 365 share point online development
MindyJeanneConsultant
Design & Deploy a data-driven Web API in 2 hours
Is Enterprise Java Still Relevant (JavaOne 2015 session)
Building Your First App with MongoDB
Extending_EBS_12_1_3_with_APEX_5_0_COLLABORATE16
Elefrant [ng-Poznan]
Getting Started with the Node.js LoopBack APi Framework
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
Scalable Web Architectures and Infrastructure
RichardChauvetShortResume2015

More from DA-14 (11)

PPTX
Tech talk Angular 2
PPTX
AngularJS: what is underneath the hood
PPTX
Firebase not really_yohoho
PDF
Techtalk#8: Design patterns in real life
PPTX
Techtalk#7: Architecture principles by Steve McConnell's book "Code Complete"
PPTX
Mysql, MongoDb feat. Doctrine2
PPTX
Web Components: back to the future
PPTX
Techtalk#6: NodeJs: pitfalls (based on game project)
PPTX
JS Frameworks Day April,26 of 2014
PDF
TechTalk#2: Принципы управления временем
PDF
TechTalk#3: REST
Tech talk Angular 2
AngularJS: what is underneath the hood
Firebase not really_yohoho
Techtalk#8: Design patterns in real life
Techtalk#7: Architecture principles by Steve McConnell's book "Code Complete"
Mysql, MongoDb feat. Doctrine2
Web Components: back to the future
Techtalk#6: NodeJs: pitfalls (based on game project)
JS Frameworks Day April,26 of 2014
TechTalk#2: Принципы управления временем
TechTalk#3: REST

Recently uploaded (20)

PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
L1 - Introduction to python Backend.pptx
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
medical staffing services at VALiNTRY
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Digital Strategies for Manufacturing Companies
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Introduction to Artificial Intelligence
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
System and Network Administration Chapter 2
PPTX
Transform Your Business with a Software ERP System
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
history of c programming in notes for students .pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
L1 - Introduction to python Backend.pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
2025 Textile ERP Trends: SAP, Odoo & Oracle
medical staffing services at VALiNTRY
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Digital Strategies for Manufacturing Companies
wealthsignaloriginal-com-DS-text-... (1).pdf
Softaken Excel to vCard Converter Software.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Introduction to Artificial Intelligence
Reimagine Home Health with the Power of Agentic AI​
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
System and Network Administration Chapter 2
Transform Your Business with a Software ERP System
Internet Downloader Manager (IDM) Crack 6.42 Build 41
history of c programming in notes for students .pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development

Express js api-versioning

  • 3. - New database architecture - iOS builds are not so easy to change - Old iOS build should be supported as well as new versions Why did we initiate API versioning?
  • 4. ExpressJS: API versioning previous flow request middlewares responsecontroller model route
  • 5. - New features should be implemented into API V2 - API V1 shouldn’t know about database changes - API V1 will not be updated with new features ExpressJS: API versioning requirements
  • 6. ExpressJS: API versioning new flow to fit requirements request middlewares response controller V1 model route V1 route V2 controller V2 response service (mapper)
  • 7. ExpressJS: API versioning new flow to fit requirements - response mapper origin url?response data process response emulate v1 response (map) response service / mapper /api/v1 /api/v2
  • 8. - Create V1 and V2 routes - Move previous controller actions to V2 folder (controllers/v2) - Leave entities that should be changed in V1 - Convert / Migrate existing data to get it suitable with new database structure ExpressJS: API versioning new flow to fit requirements
  • 9. Name: Roman Sachenko Email: roman.sachenko@gmail.com Skype: roman.sachenko