SlideShare a Scribd company logo
1 of 48
Download to read offline
An API First Approach
with OpenAPI 3.0
11.20.17
Page 2
@keshinpoint
Product Marketing Manager:
Keshav Vasudevan
@keshinpoint
Marketing Manager:
Ryan Pinkham
Todayโ€™s Presenters
Page
Try SwaggerHub for free: swaggerhub.com
3
@keshinpoint
Agenda
โ€ข WhatistheAPIFirstApproach?
โ€ข AdoptingtheAPIFirstapproachintherealworld
โ€ข HowcanOpenAPI3.0help?
โ€ข HowtocreateanOpenAPI3.0design?
What is the API First
Approach?
@keshinpoint
4
Page
Try SwaggerHub for free: swaggerhub.com
5
@keshinpoint
Enter the API First Approach
The API First approach involves having your APIs as the first and primary element of your
product and service strategy.
API First means youโ€™re building an API from the ground up to be consumed in an optimal
fashion by client applications and services
Page
Try SwaggerHub for free: swaggerhub.com
6
@keshinpoint
Reason 1:Moving Faster
Model Companies
Page
Try SwaggerHub for free: swaggerhub.com
7
@keshinpoint
Life In a Monolith
Implementation
API
Backend
Developers
Frontend
Developers
Client A Client B Client C โ€ฆ
Database
Page
Try SwaggerHub for free: swaggerhub.com@keshinpoint
Life In a Monolithic Dependency
Stakeholders
Build
Application
Code
Check in to
Repo
Deploy Happy
customers
Test
8
Page
Try SwaggerHub for free: swaggerhub.com@keshinpoint
A Monolithic Journey
Stakeholders
Build
Application
Code
Check in to
Repo
Deploy Happy
customers
Test
Codebase 1
9
Page
Try SwaggerHub for free: swaggerhub.com@keshinpoint
A Monolithic Dependency
Codebase 1
Codebase 2
Check in to
repo
Deploy
Check in to
repo
Deploy
Codebase 3
Deploy
10
Page
Try SwaggerHub for free: swaggerhub.com@keshinpoint
A Nightmare of Failures
Codebase 1
Codebase 2
Check in to
repo
Deploy
Check in to
repo
Deploy
Codebase 3
Deploy
Check in to
repo
Code failure
11
Page
Try SwaggerHub for free: swaggerhub.com
12
@keshinpoint
An API First Approach
Backend Developers
Frontend Developers
Client A
Database
Implementation Implementation Implementation
Mock Mock Mock
API API API
Client B Client C
Page
Try SwaggerHub for free: swaggerhub.com
13
@keshinpoint
The Jeff Bezos Mandate
Net worth: 95.1 Billion USD
This was issued in 2002!
Page
Try SwaggerHub for free: swaggerhub.com
14
@keshinpoint
What CanYou ExpectWith An API First Approach?
Reduced interdependencies, allows teamsto workattheir own pace
Faster development and delivery
Easier expansion to different interfaces,clients and views
Page
Try SwaggerHub for free: swaggerhub.com
15
@keshinpoint
Reason 2:Leveraging the API Economy
Model Companies
Page
Try SwaggerHub for free: swaggerhub.com
Explosion in the API Economy
0.3 0.6 0.9
1.5
2.4
3.4
7.2
10.3
12.2
14.1
16.1
0
2
4
6
8
10
12
14
16
18
0 2006 07 08 09 10 11 12 13 14 15 16
85%
ofenterpriseswill
haveanAPIby2018
100,000
PublicAPIs
16
@keshinpoint
Page
Try SwaggerHub for free: swaggerhub.com
17
@keshinpoint
Platforms Drive The Internetโ€™s GDP
The internet drives over 1.2 trillion Euros in sales
Platform ecosystems
are a major driver of
this growth
Page
Try SwaggerHub for free: swaggerhub.com
18
@keshinpoint
API Artifact as Secondary Citizen
โ€ข 30%ofworldโ€™scompaniesaretryingtobuildadigitalecosystem
โ€ข Platformsaccountforamajorityoftheinternetโ€™srevenue
โ€ข APIsarethecenterfoldtoPlatformandAPIEconomy
โ€ข APIsdrivingstrategicbusinessgoalswithuniquebusinessmodels
Page
Try SwaggerHub for free: swaggerhub.com
19
@keshinpoint
API First Benefits
Reduced interdependencies, allows teamsto workattheir own pace
Faster development and delivery
Easier expansion to different interfaces,clients and views
Developer friendly servicesto build ecosystems and platforms
Adopting The API First
Approach
@keshinpoint
2
0
Page
Try SwaggerHub for free: swaggerhub.com
21
@keshinpoint
โ€œThe definition of insanity is doing the same thing over and over and expecting different results.โ€
- Albert Einstein
Changing any development approach is not easy!
Page
Try SwaggerHub for free: swaggerhub.com
22
@keshinpoint
API First Adoption Guidelines
1. Planning for the Shift
2. Conceptualizing the Service
3. Developing the Service
4. Deploying and Consuming the Service
Page
1. Planning the Shift
How does an organization or team plan for the new
approach?
23
@keshinpoint
Topics covered:
โ€ข Setting up the team
โ€ข Setting up delivery processes
โ€ข Setting up guidelines
Page
Try SwaggerHub for free: swaggerhub.com
24
@keshinpoint
Planning the Shift:Setting Up Teams and Processes
Setting up the team
โ€ข Identify your APIs stakeholders
โ€ข Identify your APIโ€™s customers
โ€ข Set up governance team
Set up a process
โ€ข Process is unavoidable, especially for an organization that wants
to scale
โ€ข Process needs to be repeatable, realistic and lightweight
โ€ข Enforcement usually happens top-down
Page
Try SwaggerHub for free: swaggerhub.com
25
@keshinpoint
Example API First Process
Proposal Align Review Design DevelopVerify Deploy
Used by
Page
Try SwaggerHub for free: swaggerhub.com
26
@keshinpoint
Planning the Shift:Setting Up Guidelines
WhyGuidelines?
โ€ข As APIs areadded to the portfolio, itโ€™simportant to ensure theyโ€™re
consistent with each other
โ€ข APIs with common behaviors and patternswill easework of
consumers integratingwith them
โ€ข New API designs in portfolio wonโ€™thave toreinvent wheel
Whatto Coverin Guidelines
โ€ข Security
โ€ข Naming of resources, parameters,responses
โ€ข Error handling
โ€ข Dataformat handling
โ€ข Versioning
Page
Try SwaggerHub for free: swaggerhub.com
27
@keshinpoint
Example Guidelines
Apistylebook.com
Page
Try SwaggerHub for free: swaggerhub.com
28
@keshinpoint
API First Adoption Guidelines
1. Planning for the Shift
2. Conceptualizing the Service
3. Developing the Service
4. Deploying and Consuming the Service
Page
2. Conceptualizing the Service
How does an organization or team work on a new
service?
29
@keshinpoint
Topics covered:
โ€ข Service business objective
โ€ข Designing the service
โ€ข Virtualizing the service
Page
Try SwaggerHub for free: swaggerhub.com
30
@keshinpoint
Conceptualizing the Service:Business Objective of Service
APIsExistFor a Reason
โ€ข Identify your organizationโ€™s business taxonomyโ€“ outer
bounds of business capabilities
โ€ข Conceptualize APIs that exist within these bounds
DeterminingWhy API Exists
โ€ข What tangible outcome can service bring to overall
business?
โ€ข What tangible outcome can service bring to customer?
โ€ข What tangible outcome can service bring to internal
processes?
Page
Try SwaggerHub for free: swaggerhub.com
31
@keshinpoint
Conceptualizing the Service:The Top Down Approach
Page
Try SwaggerHub for free: swaggerhub.com
32
@keshinpoint
Conceptualizing the Service:Design First
โ€ข APIFirst and Design First goes hand-in-hand
โ€ข Stakeholders (backend, front end, PMs) havefull visibility into what the service is supposed to do
โ€ข Puts the business objectiveof the APIfirst before the technology
OpenAPISpec:HumanandmachinereadableinterfaceforRESTAPIs
Page
Try SwaggerHub for free: swaggerhub.com
33
@keshinpoint
OAS Opens Up AWorld Of Possibilities
Page
Try SwaggerHub for free: swaggerhub.com
34
@keshinpoint
Conceptualizing the Service:Benefits ofVirtualization
โ€ข Quicklycreate,edit and use Virtualresponses for OpenAPIs
โ€ข Easily record services,modify them and use themfor testing, development, prototyping
โ€ข Make virtualservices realistic (reallife)by linking them todata
โ€ข Get creativewith routing and dispatching different responses
โ€ข Easily route betweenvirtualand actualservice
โ€ข Provide accesstothe teamby sharing the virtualizedtransactions
Time Savings Faster Time to Market Full Control
Page
Try SwaggerHub for free: swaggerhub.com
35
@keshinpoint
API First Adoption Guidelines
1. Planning for the Shift
2. Conceptualizing the Service
3. Developing the Service
4. Deploying and Consuming the Service
Page
3. Developing the Service
How does an organization or team build the service
from the interface?
36
@keshinpoint
Page
Try SwaggerHub for free: swaggerhub.com
37
@keshinpoint
Developing the Service
Designand
Documentation
SwaggerHub
Developmentand
Testing
SoapUIServiceV
Mockingand
Virtualization
Page
Try SwaggerHub for free: swaggerhub.com
38
@keshinpoint
API First Adoption Guidelines
1. Planning for the Shift
2. Conceptualizing the Service
3. Developing the Service
4. Deploying and Consuming the Service
Page
Try SwaggerHub for free: swaggerhub.com
Page
4. Deploying and Consuming the Service
How does an organization or teambuild the servicefrom the
interface?
39
@keshinpoint
Topics covered:
โ€ข Cataloging services
โ€ข Dev Portal
โ€ข Measure the metricsโ€“ MaturityModel
Page
Try SwaggerHub for free: swaggerhub.com
40
@keshinpoint
Deploying the Service:Catalog Services
WhyCatalog?
โ€ข Maybethemost importantpieceofinfrastructureneeded
โ€ข Needtoconsolidatediscovery,documentation,SDKs,andoverall
engagement
โ€ข Criticalpiecefor internalcommunication
โ€ข Centralsourceoftruthalsohelpsenforceotherdevstofollowandintegrate
withAPIs
CatalogMVP
โ€ข InventoryofAPIswithownershipinformation
โ€ข ShowsallrelevantversionsofanAPI
โ€ข Supportscollaborationandaccesscontrol
โ€ข Documentationhosting
โ€ข SupportsSDKs
โ€ข CommunicationandFeedback
Page
Try SwaggerHub for free: swaggerhub.com
41
@keshinpoint
Deploying the Service:Measuring Maturity
Whatis aMaturityModel?
โ€ข Maturityisameasurementiftheabilityofanorganizationtodeliver
โ€ข Inthiscase,howreusableandconsumableAPIis
WhyaMaturityModel?
โ€ข API Firstmeansyour APIsarefoundationalpiecesfor anynewproductor service
โ€ข APIsmustbeconstantlymeasuresfor effectiveness
โ€ข Friendlycompetitionamongteamsleadsto innovate
MaturityModelMetricIdeas
โ€ข AccessibilityofAPI
โ€ข Speedto first200
โ€ข Documentationfriendliness
Page
Try SwaggerHub for free: swaggerhub.com
42
@keshinpoint
API First Adoption Guidelines
1. Planning for the Shift
2. Conceptualizing the Service
3. Developing the Service
4. Deploying and Consuming the Service
Page
Try SwaggerHub for free: swaggerhub.com
Design First Approach Using
OpenAPI and SwaggerHub
@keshinpoint
43
Page
Try SwaggerHub for free: swaggerhub.com@keshinpoint
API First Implementation Using OAS
Design First
Communication and Collaboration
Governance and Guidelines
Mocking and Virtualization
Cataloging and Discovery
Page
Try SwaggerHub for free: swaggerhub.com
45
@keshinpoint
The Platform for API First
SwaggerHubis the API designand documentation
platform built for teams to drive consistencyand
disciplineacross their API development workflow.
Faster,Standardized
Design
Centralized,Secure
Collaboration
Hosted,Interactive
Documentation
Page
Try SwaggerHub for free: swaggerhub.com
46
@keshinpoint
Letโ€™s Start Designing!
Objective: Design an API that allows users to obtain information for employees, or post
information of new employee in company DB
Team:
- API Designer
- API Documentation
- API Development
- API Governance
Page
Try SwaggerHub for free: swaggerhub.com
47
@keshinpoint
Resource: Employee
GET
Gives info for array of employees
Query Parameters
โ€ข bodyLimit
โ€ข pageLimit
Responses
โ€ข 200 Payload
โ€“ ID
โ€“ Name
โ€“ Title
POST
Allows posting info of new employee
Parameters
โ€ข Payload
โ€“ ID
โ€“ Name
โ€“ Title
Responses
โ€ข 200
Thank you!
@swaggerhub
app.swaggerhub.com/help support@swaggerhub.com
swaggerhub.com/blog

More Related Content

More from SmartBear

More from SmartBear (20)

Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
ย 
Effective API Lifecycle Management
Effective API Lifecycle Management Effective API Lifecycle Management
Effective API Lifecycle Management
ย 
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
ย 
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
ย 
Artificial intelligence for faster and smarter software testing - Galway Mee...
Artificial intelligence for faster and smarter software testing  - Galway Mee...Artificial intelligence for faster and smarter software testing  - Galway Mee...
Artificial intelligence for faster and smarter software testing - Galway Mee...
ย 
Successfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile WorldSuccessfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile World
ย 
The Best Kept Secrets of Code Review | SmartBear Webinar
The Best Kept Secrets of Code Review | SmartBear WebinarThe Best Kept Secrets of Code Review | SmartBear Webinar
The Best Kept Secrets of Code Review | SmartBear Webinar
ย 
How Capital One Scaled API Design to Deliver New Products Faster
How Capital One Scaled API Design to Deliver New Products FasterHow Capital One Scaled API Design to Deliver New Products Faster
How Capital One Scaled API Design to Deliver New Products Faster
ย 
Testing Without a GUI Using TestComplete
 Testing Without a GUI Using TestComplete Testing Without a GUI Using TestComplete
Testing Without a GUI Using TestComplete
ย 
Hidden Treasure - TestComplete Script Extensions
Hidden Treasure - TestComplete Script ExtensionsHidden Treasure - TestComplete Script Extensions
Hidden Treasure - TestComplete Script Extensions
ย 
How Bdd Can Save Agile
 How Bdd Can Save Agile How Bdd Can Save Agile
How Bdd Can Save Agile
ย 
API Automation and TDD to Implement Master Data Survivorship Rules
API Automation and TDD to Implement Master Data Survivorship RulesAPI Automation and TDD to Implement Master Data Survivorship Rules
API Automation and TDD to Implement Master Data Survivorship Rules
ย 
Support Rapid Systems Growth with a Design-First Approach
Support Rapid Systems Growth with a Design-First ApproachSupport Rapid Systems Growth with a Design-First Approach
Support Rapid Systems Growth with a Design-First Approach
ย 
Maximize Test Automation with a Risk-Based Approach
Maximize Test Automation with a Risk-Based ApproachMaximize Test Automation with a Risk-Based Approach
Maximize Test Automation with a Risk-Based Approach
ย 
Modernizing the Enterprise API Development Process
Modernizing the Enterprise API Development ProcessModernizing the Enterprise API Development Process
Modernizing the Enterprise API Development Process
ย 
Developing Performance-Oriented Code: Moore's Law Over 50
Developing Performance-Oriented Code: Moore's Law Over 50Developing Performance-Oriented Code: Moore's Law Over 50
Developing Performance-Oriented Code: Moore's Law Over 50
ย 
Implementation of DevOps at SmartBear
Implementation of DevOps at SmartBearImplementation of DevOps at SmartBear
Implementation of DevOps at SmartBear
ย 
Accelerate Your Delivery Pipeline with Continuous Testing
Accelerate Your Delivery Pipeline with Continuous TestingAccelerate Your Delivery Pipeline with Continuous Testing
Accelerate Your Delivery Pipeline with Continuous Testing
ย 
Be Dynamic: Unblock Your Environments
Be Dynamic: Unblock Your Environments Be Dynamic: Unblock Your Environments
Be Dynamic: Unblock Your Environments
ย 
Transform QA to Stay Ahead of Digital Disruption
Transform QA to Stay Ahead of Digital DisruptionTransform QA to Stay Ahead of Digital Disruption
Transform QA to Stay Ahead of Digital Disruption
ย 

Recently uploaded

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
bodapatigopi8531
ย 
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
anilsa9823
ย 

Recently uploaded (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
ย 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
ย 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ย 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
ย 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
ย 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
ย 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
ย 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
ย 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
ย 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
ย 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
ย 
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
ย 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
ย 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
ย 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
ย 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
ย 
Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spacesย - and Epistemic Querying of RDF-...
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
ย 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
ย 

Adopting an API-First Approach with OpenAPI 3.0

  • 1. An API First Approach with OpenAPI 3.0 11.20.17
  • 2. Page 2 @keshinpoint Product Marketing Manager: Keshav Vasudevan @keshinpoint Marketing Manager: Ryan Pinkham Todayโ€™s Presenters
  • 3. Page Try SwaggerHub for free: swaggerhub.com 3 @keshinpoint Agenda โ€ข WhatistheAPIFirstApproach? โ€ข AdoptingtheAPIFirstapproachintherealworld โ€ข HowcanOpenAPI3.0help? โ€ข HowtocreateanOpenAPI3.0design?
  • 4. What is the API First Approach? @keshinpoint 4
  • 5. Page Try SwaggerHub for free: swaggerhub.com 5 @keshinpoint Enter the API First Approach The API First approach involves having your APIs as the first and primary element of your product and service strategy. API First means youโ€™re building an API from the ground up to be consumed in an optimal fashion by client applications and services
  • 6. Page Try SwaggerHub for free: swaggerhub.com 6 @keshinpoint Reason 1:Moving Faster Model Companies
  • 7. Page Try SwaggerHub for free: swaggerhub.com 7 @keshinpoint Life In a Monolith Implementation API Backend Developers Frontend Developers Client A Client B Client C โ€ฆ Database
  • 8. Page Try SwaggerHub for free: swaggerhub.com@keshinpoint Life In a Monolithic Dependency Stakeholders Build Application Code Check in to Repo Deploy Happy customers Test 8
  • 9. Page Try SwaggerHub for free: swaggerhub.com@keshinpoint A Monolithic Journey Stakeholders Build Application Code Check in to Repo Deploy Happy customers Test Codebase 1 9
  • 10. Page Try SwaggerHub for free: swaggerhub.com@keshinpoint A Monolithic Dependency Codebase 1 Codebase 2 Check in to repo Deploy Check in to repo Deploy Codebase 3 Deploy 10
  • 11. Page Try SwaggerHub for free: swaggerhub.com@keshinpoint A Nightmare of Failures Codebase 1 Codebase 2 Check in to repo Deploy Check in to repo Deploy Codebase 3 Deploy Check in to repo Code failure 11
  • 12. Page Try SwaggerHub for free: swaggerhub.com 12 @keshinpoint An API First Approach Backend Developers Frontend Developers Client A Database Implementation Implementation Implementation Mock Mock Mock API API API Client B Client C
  • 13. Page Try SwaggerHub for free: swaggerhub.com 13 @keshinpoint The Jeff Bezos Mandate Net worth: 95.1 Billion USD This was issued in 2002!
  • 14. Page Try SwaggerHub for free: swaggerhub.com 14 @keshinpoint What CanYou ExpectWith An API First Approach? Reduced interdependencies, allows teamsto workattheir own pace Faster development and delivery Easier expansion to different interfaces,clients and views
  • 15. Page Try SwaggerHub for free: swaggerhub.com 15 @keshinpoint Reason 2:Leveraging the API Economy Model Companies
  • 16. Page Try SwaggerHub for free: swaggerhub.com Explosion in the API Economy 0.3 0.6 0.9 1.5 2.4 3.4 7.2 10.3 12.2 14.1 16.1 0 2 4 6 8 10 12 14 16 18 0 2006 07 08 09 10 11 12 13 14 15 16 85% ofenterpriseswill haveanAPIby2018 100,000 PublicAPIs 16 @keshinpoint
  • 17. Page Try SwaggerHub for free: swaggerhub.com 17 @keshinpoint Platforms Drive The Internetโ€™s GDP The internet drives over 1.2 trillion Euros in sales Platform ecosystems are a major driver of this growth
  • 18. Page Try SwaggerHub for free: swaggerhub.com 18 @keshinpoint API Artifact as Secondary Citizen โ€ข 30%ofworldโ€™scompaniesaretryingtobuildadigitalecosystem โ€ข Platformsaccountforamajorityoftheinternetโ€™srevenue โ€ข APIsarethecenterfoldtoPlatformandAPIEconomy โ€ข APIsdrivingstrategicbusinessgoalswithuniquebusinessmodels
  • 19. Page Try SwaggerHub for free: swaggerhub.com 19 @keshinpoint API First Benefits Reduced interdependencies, allows teamsto workattheir own pace Faster development and delivery Easier expansion to different interfaces,clients and views Developer friendly servicesto build ecosystems and platforms
  • 20. Adopting The API First Approach @keshinpoint 2 0
  • 21. Page Try SwaggerHub for free: swaggerhub.com 21 @keshinpoint โ€œThe definition of insanity is doing the same thing over and over and expecting different results.โ€ - Albert Einstein Changing any development approach is not easy!
  • 22. Page Try SwaggerHub for free: swaggerhub.com 22 @keshinpoint API First Adoption Guidelines 1. Planning for the Shift 2. Conceptualizing the Service 3. Developing the Service 4. Deploying and Consuming the Service
  • 23. Page 1. Planning the Shift How does an organization or team plan for the new approach? 23 @keshinpoint Topics covered: โ€ข Setting up the team โ€ข Setting up delivery processes โ€ข Setting up guidelines
  • 24. Page Try SwaggerHub for free: swaggerhub.com 24 @keshinpoint Planning the Shift:Setting Up Teams and Processes Setting up the team โ€ข Identify your APIs stakeholders โ€ข Identify your APIโ€™s customers โ€ข Set up governance team Set up a process โ€ข Process is unavoidable, especially for an organization that wants to scale โ€ข Process needs to be repeatable, realistic and lightweight โ€ข Enforcement usually happens top-down
  • 25. Page Try SwaggerHub for free: swaggerhub.com 25 @keshinpoint Example API First Process Proposal Align Review Design DevelopVerify Deploy Used by
  • 26. Page Try SwaggerHub for free: swaggerhub.com 26 @keshinpoint Planning the Shift:Setting Up Guidelines WhyGuidelines? โ€ข As APIs areadded to the portfolio, itโ€™simportant to ensure theyโ€™re consistent with each other โ€ข APIs with common behaviors and patternswill easework of consumers integratingwith them โ€ข New API designs in portfolio wonโ€™thave toreinvent wheel Whatto Coverin Guidelines โ€ข Security โ€ข Naming of resources, parameters,responses โ€ข Error handling โ€ข Dataformat handling โ€ข Versioning
  • 27. Page Try SwaggerHub for free: swaggerhub.com 27 @keshinpoint Example Guidelines Apistylebook.com
  • 28. Page Try SwaggerHub for free: swaggerhub.com 28 @keshinpoint API First Adoption Guidelines 1. Planning for the Shift 2. Conceptualizing the Service 3. Developing the Service 4. Deploying and Consuming the Service
  • 29. Page 2. Conceptualizing the Service How does an organization or team work on a new service? 29 @keshinpoint Topics covered: โ€ข Service business objective โ€ข Designing the service โ€ข Virtualizing the service
  • 30. Page Try SwaggerHub for free: swaggerhub.com 30 @keshinpoint Conceptualizing the Service:Business Objective of Service APIsExistFor a Reason โ€ข Identify your organizationโ€™s business taxonomyโ€“ outer bounds of business capabilities โ€ข Conceptualize APIs that exist within these bounds DeterminingWhy API Exists โ€ข What tangible outcome can service bring to overall business? โ€ข What tangible outcome can service bring to customer? โ€ข What tangible outcome can service bring to internal processes?
  • 31. Page Try SwaggerHub for free: swaggerhub.com 31 @keshinpoint Conceptualizing the Service:The Top Down Approach
  • 32. Page Try SwaggerHub for free: swaggerhub.com 32 @keshinpoint Conceptualizing the Service:Design First โ€ข APIFirst and Design First goes hand-in-hand โ€ข Stakeholders (backend, front end, PMs) havefull visibility into what the service is supposed to do โ€ข Puts the business objectiveof the APIfirst before the technology OpenAPISpec:HumanandmachinereadableinterfaceforRESTAPIs
  • 33. Page Try SwaggerHub for free: swaggerhub.com 33 @keshinpoint OAS Opens Up AWorld Of Possibilities
  • 34. Page Try SwaggerHub for free: swaggerhub.com 34 @keshinpoint Conceptualizing the Service:Benefits ofVirtualization โ€ข Quicklycreate,edit and use Virtualresponses for OpenAPIs โ€ข Easily record services,modify them and use themfor testing, development, prototyping โ€ข Make virtualservices realistic (reallife)by linking them todata โ€ข Get creativewith routing and dispatching different responses โ€ข Easily route betweenvirtualand actualservice โ€ข Provide accesstothe teamby sharing the virtualizedtransactions Time Savings Faster Time to Market Full Control
  • 35. Page Try SwaggerHub for free: swaggerhub.com 35 @keshinpoint API First Adoption Guidelines 1. Planning for the Shift 2. Conceptualizing the Service 3. Developing the Service 4. Deploying and Consuming the Service
  • 36. Page 3. Developing the Service How does an organization or team build the service from the interface? 36 @keshinpoint
  • 37. Page Try SwaggerHub for free: swaggerhub.com 37 @keshinpoint Developing the Service Designand Documentation SwaggerHub Developmentand Testing SoapUIServiceV Mockingand Virtualization
  • 38. Page Try SwaggerHub for free: swaggerhub.com 38 @keshinpoint API First Adoption Guidelines 1. Planning for the Shift 2. Conceptualizing the Service 3. Developing the Service 4. Deploying and Consuming the Service
  • 39. Page Try SwaggerHub for free: swaggerhub.com Page 4. Deploying and Consuming the Service How does an organization or teambuild the servicefrom the interface? 39 @keshinpoint Topics covered: โ€ข Cataloging services โ€ข Dev Portal โ€ข Measure the metricsโ€“ MaturityModel
  • 40. Page Try SwaggerHub for free: swaggerhub.com 40 @keshinpoint Deploying the Service:Catalog Services WhyCatalog? โ€ข Maybethemost importantpieceofinfrastructureneeded โ€ข Needtoconsolidatediscovery,documentation,SDKs,andoverall engagement โ€ข Criticalpiecefor internalcommunication โ€ข Centralsourceoftruthalsohelpsenforceotherdevstofollowandintegrate withAPIs CatalogMVP โ€ข InventoryofAPIswithownershipinformation โ€ข ShowsallrelevantversionsofanAPI โ€ข Supportscollaborationandaccesscontrol โ€ข Documentationhosting โ€ข SupportsSDKs โ€ข CommunicationandFeedback
  • 41. Page Try SwaggerHub for free: swaggerhub.com 41 @keshinpoint Deploying the Service:Measuring Maturity Whatis aMaturityModel? โ€ข Maturityisameasurementiftheabilityofanorganizationtodeliver โ€ข Inthiscase,howreusableandconsumableAPIis WhyaMaturityModel? โ€ข API Firstmeansyour APIsarefoundationalpiecesfor anynewproductor service โ€ข APIsmustbeconstantlymeasuresfor effectiveness โ€ข Friendlycompetitionamongteamsleadsto innovate MaturityModelMetricIdeas โ€ข AccessibilityofAPI โ€ข Speedto first200 โ€ข Documentationfriendliness
  • 42. Page Try SwaggerHub for free: swaggerhub.com 42 @keshinpoint API First Adoption Guidelines 1. Planning for the Shift 2. Conceptualizing the Service 3. Developing the Service 4. Deploying and Consuming the Service
  • 43. Page Try SwaggerHub for free: swaggerhub.com Design First Approach Using OpenAPI and SwaggerHub @keshinpoint 43
  • 44. Page Try SwaggerHub for free: swaggerhub.com@keshinpoint API First Implementation Using OAS Design First Communication and Collaboration Governance and Guidelines Mocking and Virtualization Cataloging and Discovery
  • 45. Page Try SwaggerHub for free: swaggerhub.com 45 @keshinpoint The Platform for API First SwaggerHubis the API designand documentation platform built for teams to drive consistencyand disciplineacross their API development workflow. Faster,Standardized Design Centralized,Secure Collaboration Hosted,Interactive Documentation
  • 46. Page Try SwaggerHub for free: swaggerhub.com 46 @keshinpoint Letโ€™s Start Designing! Objective: Design an API that allows users to obtain information for employees, or post information of new employee in company DB Team: - API Designer - API Documentation - API Development - API Governance
  • 47. Page Try SwaggerHub for free: swaggerhub.com 47 @keshinpoint Resource: Employee GET Gives info for array of employees Query Parameters โ€ข bodyLimit โ€ข pageLimit Responses โ€ข 200 Payload โ€“ ID โ€“ Name โ€“ Title POST Allows posting info of new employee Parameters โ€ข Payload โ€“ ID โ€“ Name โ€“ Title Responses โ€ข 200