SlideShare a Scribd company logo
1
OpenAPI 3.0, And What It Means for the
Future of Swagger
2
Today’s Presenters
Ole Lensmar
CTO, SmartBear Software
Chair, OpenAPI Initiative
Ron Ratovsky
Swagger Developer Evangelist, SmartBear
Software
Member, OpenAPI Technical Development
Community
3
Today’s Webinar Presented by SmartBear Software
PLANNING DESIGN IMPLEMENT + TEST DEPLOY RETIRE
eBOOKS
WORKSHOPS
DESIGN
DOCUMENT
CODE
INTEGRATE
FUNCTIONAL
PERFORMANCE
SECURITY
VIRTUALIZATION
MONITOR
DEPLOY
DEPRECATE
VERSION
TRAININGS
CONFERENCES
PARTNER INTEGRATIONS
OPEN SOURCE
OFFERINGS
COMMERCIAL
OFFERINGS
4
Today’s Agenda
• OpenAPI Initiative Overview
• Why OAS 3.0 became the standard
• What’s new in OAS 3.0
• OAS 3.0 in the API Lifecycle
• What’s next for Swagger & SwaggerHub
• Live Swagger demo
• Q&A
55
OpenAPI Initiative Overview
6
History of OpenAPI Initiative
• Swagger Project founded in 2010 by Tony
Tam / Reverb to design and document API
interfaces
• Groups large & small drawn to Project
Interested in its simplicity, pragmatic
approach, potential open governance
• Acquired by SmartBear in early 2015
• Swagger 2.0 Spec donated by SmartBear
Software to the Open API Initiative
• OpenAPI Initiative reaches 27 members,
including software providers and industry
leaders in banking, healthcare, finance, & tech
• OpenAPI 3.0 officially released on 7/26
7
The OpenAPI Initiative
Provide an open source, technical community, within which industry
participants may easily contribute to building a vendor-neutral, portable and
open specification for providing technical metadata for REST APIs
The OAI is a collaborative project under the guidance of the The Linux Foundation.
LF Projects use open source governance best practices, including license and
contribution agreement choices, in keeping with the ideals of Linux.
8
The OpenAPI Initiative - 2 main bodies
• BGB - Provides governance for the OpenAPI Spec
• Evangelization / Events / Sponsorships
• Drives the APIStrat conference (new!)
• Expertise & Knowledge Sharing
• Licensing / Legal / Trademarks
• Does not have any influence on the technical direction of the spec
• TDC – Drives the evolution of the OpenAPI Spec
• Drives the technical direction of the specification
• Managed like any open-source project at https://github.com/OAI
• Anyone is welcome and encouraged to join and suggest, discuss, ask
and complain!
9
What is the OpenAPI Specification?
A common, public contract between services
Independent of language, framework,
deployment technology
YAML or JSON format
Supports both API-first and code-first
approaches to defining, building and
documenting APIs
Bottom-up community and usage driven
evolution
10
Swagger? OpenAPI? OAS? OAI?
Specification
Tools
1111
What’s New in OpenAPI 3.0?
12
OAS 3.0 Specification Change Criteria
• Clarity - The current "way" something is done doesn't make sense, is complicated, or not
clear
• Consistency - A portion of the specification is not consistent with the rest, or the industry
standard terminology
• Necessary functionality - We are missing functionality because of a certain design of the
specification
• Forward-looking designs - As usage of APIs evolves to new protocols, formats,
patterns, we should always be considering what the next important functionality should be
• Impact - A change will provide impact on a large number of use cases. We should not be
forced to accommodate every use case. We should strive to make the common and important
use cases both well supported and common in the definition of the OAI Spec.
13
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between operations
✓ Improved examples
✓ Enhanced security definitions
14
Specification Restructure and Improve Reusability
OpenAPI 2.0
info
host
paths
parameters
security
tags externalDocs
basePath
schemes securityDefinitions
responses
definitions
produces consumes
OpenAPI 3.0
info
servers
paths
components
security
tags externalDocs
15
Specification Restructured and Improve Reusability
OpenAPI 3.0
Components
schemas
responses
parameters
examples
requestBodies
headers
securitySchemes
links
callbacks
- All reusable components are under
one roof
- Standardized naming
- Added new objects for extended
reusability
16
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between operations
✓ Improved examples
✓ Enhanced security definitions
17
Improved parameter descriptions
- New parameter type: cookie
- Remove parameter types: body,
formData
- All parameters support complex
types
- Further serialization support by
defining media types
18
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between operations
✓ Improved examples
✓ Enhanced security definitions
19
Content Negotiation Support
- Requests bodies and
responses allow defining
different schemas and
examples for different media
types
- Improved file upload support
- Responses support wildcard
code definition
- Eliminates `consumes` and
`produces` from the spec
20
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between operations
✓ Improved examples
✓ Enhanced security definitions
21
Support for Describing Callbacks
- Allows definition of async
APIs
- Callbacks need to be
implemented by both clients
and servers
- Callback URLs are
expression based
- Callbacks are defined by
using the same structure as
other path definitions
22
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between
operations
✓ Improved examples
✓ Enhanced security definitions
23
Introducing OpenAPI Links
OpenAPI Links are Client-Computed, Design-Time Parameterized
Traversals between Responses and Operations
- Creation relations between responses and
other operations
- Parameters can depend on both the request
and response
- Client can follow links automatically
- Depends on the API definition alone without
runtime impact
24
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between operations
✓ Improved examples
✓ Enhanced security definitions
25
Enhanced Examples
- Examples can live in
Parameters, Request Bodies,
Responses and Schemas (*)
- Examples can be reused
- Additional Metadata
- Name
- Description
- Can reference an external
example
26
So, What’s New in OAS 3.0?
✓ Improved reusability
✓ Parameter changes
✓ Content negotiation support
✓ Support for describing callbacks
✓ Links to express relationships between operations
✓ Improved examples
✓ Enhanced security definitions
27
Enhanced Security Definitions
- Renamed OAuth2 flows
- Support for multiple flows
- OpenID Connect support
- ‘basic’ was replaced by ‘http’
- Supports different schemes
and bearer formats
28
OAS 3.0 – Additional Changes
- CommonMark support in descriptions
- Extended JSON Schema support
- Multiple and templated server definitions
- Support for TRACE method
- No payload support for DELETE, GET…
29
3.0 is a complete breaking change from 2.0
1. definitions, parameters, responses and securityDefinitions all moved
under components
2. schemes, host, basePath have been replaced by servers
3. Parameters need to be restructured:
- Type definitions move under schema
- Body and formData parameters extracted to a requestBody
4. Responses need to be restructred:
- ‘produces’media types moved to this level
5. Some security definition changes:
- `basic` changed to `http`
- OAuth2 flows renamed, given a slightly different structure
3030
OAS 3.0 in the API Lifecycle
31
Driving the API Lifecycle with OAS
Design
Implementation
Testing
Mocking
Documentation
Virtualization
Deployment /
Runtime
Clients
Security, Usage policies,
Monitoring, Caching, etc
Developer portals,
Code samples, User guides, etc.
Functional / Runtime simulations
Functional, Security,
Load, Compliance, etc.
Generated server code/artifacts
Prototyping
Generated client libraries
Object reuse, linking,
Callbacks, etc.
3232
What’s Next for Swagger?
33
Swagger: The World’s Most Popular API Tooling for OpenAPI
• 10 Million Downloads Worldwide
• Combination of Swagger UI and Swagger
Editor downloaded once every 3
seconds
• SwaggerHub, launched 2015 – 60k API
developers, architects, devops, technical
writers, & managers use SwaggerHub to
design & document APIs
34
Built for OpenAPI Specification
Swagger Editor Swagger UI Swagger Codegen
HTML, Javascript, and CSS
assets that dynamically
generate documentation
The first open source
editor fully dedicated
to OAS-based APIs.
Turn your OAS definition
into code, generating
server stubs & client SDKs
35
SwaggerHub: API Design & Documentation Platform
SwaggerHub is an integrated API design and documentation platform, built for
teams to drive consistency and discipline across the API development workflow.
36
Timeline of OAS 3.0 Support
AUGUST
• Swagger-UI/Editor
✓Editing/Viewing – out now!
▪ Sandbox functionality – end of August
• Swagger-JS – end of August
• Swagger-Core – mid August
• Swagger-Parser – mid August
• Swagger-Converter – end of August
• Swagger-Inflector – end of August
SEPTEMBER
• Swagger-Validator – mid September
• Swagger-Codegen – end of
September
• SwaggerHub – mid September
3737
Let’s See It in Action
38
Next Steps
Additional Resources
Swagger.io/docs/specification
Learn Try Connect
GitHub
SwaggerAPI
Twitter
@SwaggerAPI
Subscribe
swagger.io/blog
39
The Platform for Designing and Documenting
APIs with Swagger
Try SwaggerHub for Free
www.swaggerhub.com

More Related Content

What's hot (20)

PDF
Designing APIs with OpenAPI Spec
Adam Paxton
 
PDF
Introduction to Kong API Gateway
Yohann Ciurlik
 
PPTX
What is an API Gateway?
LunchBadger
 
PPTX
Exposing services with Azure API Management
Callon Campbell
 
PPTX
Microservices Architecture - Bangkok 2018
Araf Karsh Hamid
 
PPTX
Azure API Management
Daniel Toomey
 
PPTX
REST API Design & Development
Ashok Pundit
 
PPSX
Microservices, DevOps & SRE
Araf Karsh Hamid
 
PPTX
Secure your app with keycloak
Guy Marom
 
PDF
GitOps with ArgoCD
CloudOps2005
 
ODP
Kong API Gateway
Chris Mague
 
PPSX
Domain Driven Design
Araf Karsh Hamid
 
PPTX
Building IAM for OpenStack
Steve Martinelli
 
PPTX
Api gateway in microservices
Kunal Hire
 
PPSX
CI-CD Jenkins, GitHub Actions, Tekton
Araf Karsh Hamid
 
PPTX
API Management Part 1 - An Introduction to Azure API Management
BizTalk360
 
PPSX
Rest api standards and best practices
Ankita Mahajan
 
PPTX
Azure DevOps
Juan Fabian
 
PDF
Cloud-Native Observability
Tyler Treat
 
PPTX
Building secure applications with keycloak
Abhishek Koserwal
 
Designing APIs with OpenAPI Spec
Adam Paxton
 
Introduction to Kong API Gateway
Yohann Ciurlik
 
What is an API Gateway?
LunchBadger
 
Exposing services with Azure API Management
Callon Campbell
 
Microservices Architecture - Bangkok 2018
Araf Karsh Hamid
 
Azure API Management
Daniel Toomey
 
REST API Design & Development
Ashok Pundit
 
Microservices, DevOps & SRE
Araf Karsh Hamid
 
Secure your app with keycloak
Guy Marom
 
GitOps with ArgoCD
CloudOps2005
 
Kong API Gateway
Chris Mague
 
Domain Driven Design
Araf Karsh Hamid
 
Building IAM for OpenStack
Steve Martinelli
 
Api gateway in microservices
Kunal Hire
 
CI-CD Jenkins, GitHub Actions, Tekton
Araf Karsh Hamid
 
API Management Part 1 - An Introduction to Azure API Management
BizTalk360
 
Rest api standards and best practices
Ankita Mahajan
 
Azure DevOps
Juan Fabian
 
Cloud-Native Observability
Tyler Treat
 
Building secure applications with keycloak
Abhishek Koserwal
 

Similar to OpenAPI 3.0, And What It Means for the Future of Swagger (20)

PDF
9 Months and Counting with Jeff Borek of IBM OpenAPI Meetup 2016 09 15
Open API Initiative (OAI)
 
PDF
M meijer api management - tech-days 2015
Freelance Consultant / Manager / co-CTO
 
PPTX
Open API Initiative: Six months and counting
Open API Initiative (OAI)
 
PPTX
The Swagger Format becomes the Open API Specification: Standardizing descript...
3scale
 
PDF
Content Strategy and Developer Engagement for DevPortals
Axway
 
PPTX
Global Azure 2022 - Architecting Modern Serverless APIs with Azure Functions ...
Callon Campbell
 
PDF
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays
 
PDF
Getting Started with API Management – Why It's Needed On-prem and in the Cloud
Revelation Technologies
 
PDF
Presentation at the 2016 Linux Foundation Collab Summit
Open API Initiative (OAI)
 
PDF
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
SmartBear
 
PPT
Innovate2014 Better Integrations Through Open Interfaces
Steve Speicher
 
PPTX
Extend soa with api management spoug- Madrid
Vinay Kumar
 
PDF
Day 1 axway apim-training
Nextel Telecomunicações
 
PPTX
Lessons learned on the Azure API Stewardship Journey.pptx
apidays
 
PPTX
Rest-Assured - легкий способ автоматизации тестирования REST
Valtech Ukraine
 
PDF
Владимир Логвинов - Rest-Assured - легкий способ автоматизации тестирования REST
Web Tech Fun
 
PPTX
The State of OpenStack Product Management
Tesora
 
PDF
Extend soa with api management Sangam18
Vinay Kumar
 
PDF
Zure Azure PaaS Zero to Hero - DevOps training day
Okko Oulasvirta
 
PDF
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
luisw19
 
9 Months and Counting with Jeff Borek of IBM OpenAPI Meetup 2016 09 15
Open API Initiative (OAI)
 
M meijer api management - tech-days 2015
Freelance Consultant / Manager / co-CTO
 
Open API Initiative: Six months and counting
Open API Initiative (OAI)
 
The Swagger Format becomes the Open API Specification: Standardizing descript...
3scale
 
Content Strategy and Developer Engagement for DevPortals
Axway
 
Global Azure 2022 - Architecting Modern Serverless APIs with Azure Functions ...
Callon Campbell
 
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays
 
Getting Started with API Management – Why It's Needed On-prem and in the Cloud
Revelation Technologies
 
Presentation at the 2016 Linux Foundation Collab Summit
Open API Initiative (OAI)
 
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
SmartBear
 
Innovate2014 Better Integrations Through Open Interfaces
Steve Speicher
 
Extend soa with api management spoug- Madrid
Vinay Kumar
 
Day 1 axway apim-training
Nextel Telecomunicações
 
Lessons learned on the Azure API Stewardship Journey.pptx
apidays
 
Rest-Assured - легкий способ автоматизации тестирования REST
Valtech Ukraine
 
Владимир Логвинов - Rest-Assured - легкий способ автоматизации тестирования REST
Web Tech Fun
 
The State of OpenStack Product Management
Tesora
 
Extend soa with api management Sangam18
Vinay Kumar
 
Zure Azure PaaS Zero to Hero - DevOps training day
Okko Oulasvirta
 
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
luisw19
 
Ad

More from SmartBear (20)

PPTX
Enforcing Your Organization's API Design Standards with SwaggerHub
SmartBear
 
PPTX
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
SmartBear
 
PPTX
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
SmartBear
 
PPTX
How LISI Automotive Accelerated Application Delivery with SwaggerHub
SmartBear
 
PPTX
Standardising APIs: Powering the Platform Economy in Financial Services
SmartBear
 
PPTX
Getting Started with API Standardization in SwaggerHub
SmartBear
 
PPTX
Adopting a Design-First Approach to API Development with SwaggerHub
SmartBear
 
PPTX
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
SmartBear
 
PPTX
Effective API Lifecycle Management
SmartBear
 
PDF
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
SmartBear
 
PPTX
Artificial intelligence for faster and smarter software testing - Galway Mee...
SmartBear
 
PDF
Successfully Implementing BDD in an Agile World
SmartBear
 
PPTX
The Best Kept Secrets of Code Review | SmartBear Webinar
SmartBear
 
PPTX
How Capital One Scaled API Design to Deliver New Products Faster
SmartBear
 
PPTX
Testing Without a GUI Using TestComplete
SmartBear
 
PPTX
Hidden Treasure - TestComplete Script Extensions
SmartBear
 
PDF
How Bdd Can Save Agile
SmartBear
 
PPTX
API Automation and TDD to Implement Master Data Survivorship Rules
SmartBear
 
PDF
Support Rapid Systems Growth with a Design-First Approach
SmartBear
 
PDF
Maximize Test Automation with a Risk-Based Approach
SmartBear
 
Enforcing Your Organization's API Design Standards with SwaggerHub
SmartBear
 
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
SmartBear
 
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
SmartBear
 
How LISI Automotive Accelerated Application Delivery with SwaggerHub
SmartBear
 
Standardising APIs: Powering the Platform Economy in Financial Services
SmartBear
 
Getting Started with API Standardization in SwaggerHub
SmartBear
 
Adopting a Design-First Approach to API Development with SwaggerHub
SmartBear
 
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
SmartBear
 
Effective API Lifecycle Management
SmartBear
 
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
SmartBear
 
Artificial intelligence for faster and smarter software testing - Galway Mee...
SmartBear
 
Successfully Implementing BDD in an Agile World
SmartBear
 
The Best Kept Secrets of Code Review | SmartBear Webinar
SmartBear
 
How Capital One Scaled API Design to Deliver New Products Faster
SmartBear
 
Testing Without a GUI Using TestComplete
SmartBear
 
Hidden Treasure - TestComplete Script Extensions
SmartBear
 
How Bdd Can Save Agile
SmartBear
 
API Automation and TDD to Implement Master Data Survivorship Rules
SmartBear
 
Support Rapid Systems Growth with a Design-First Approach
SmartBear
 
Maximize Test Automation with a Risk-Based Approach
SmartBear
 
Ad

Recently uploaded (20)

PDF
Ready Layer One: Intro to the Model Context Protocol
mmckenna1
 
PDF
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
PPTX
MiniTool Partition Wizard Crack 12.8 + Serial Key Download Latest [2025]
filmoracrack9001
 
PPTX
Operations Profile SPDX_Update_20250711_Example_05_03.pptx
Shane Coughlan
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 31 2025?
utfefguu
 
PDF
10 Salesforce Consulting Companies in Sydney.pdf
DianApps Technologies
 
PDF
Instantiations Company Update (ESUG 2025)
ESUG
 
PDF
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
PPTX
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PDF
Show Which Projects Support Your Strategy and Deliver Results with OnePlan df
OnePlan Solutions
 
PPTX
Smart Doctor Appointment Booking option in odoo.pptx
AxisTechnolabs
 
PDF
Windows 10 Professional Preactivated.pdf
asghxhsagxjah
 
PPTX
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
 
PDF
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
 
PPT
24-BuildingGUIs Complete Materials in Java.ppt
javidmiakhil63
 
PDF
Optimizing Tiered Storage for Low-Latency Real-Time Analytics at AI Scale
Alluxio, Inc.
 
PPTX
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
PDF
Code and No-Code Journeys: The Maintenance Shortcut
Applitools
 
PPTX
Library_Management_System_PPT111111.pptx
nmtnissancrm
 
Ready Layer One: Intro to the Model Context Protocol
mmckenna1
 
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
MiniTool Partition Wizard Crack 12.8 + Serial Key Download Latest [2025]
filmoracrack9001
 
Operations Profile SPDX_Update_20250711_Example_05_03.pptx
Shane Coughlan
 
IDM Crack with Internet Download Manager 6.42 Build 31 2025?
utfefguu
 
10 Salesforce Consulting Companies in Sydney.pdf
DianApps Technologies
 
Instantiations Company Update (ESUG 2025)
ESUG
 
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
Show Which Projects Support Your Strategy and Deliver Results with OnePlan df
OnePlan Solutions
 
Smart Doctor Appointment Booking option in odoo.pptx
AxisTechnolabs
 
Windows 10 Professional Preactivated.pdf
asghxhsagxjah
 
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
 
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
 
24-BuildingGUIs Complete Materials in Java.ppt
javidmiakhil63
 
Optimizing Tiered Storage for Low-Latency Real-Time Analytics at AI Scale
Alluxio, Inc.
 
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
Code and No-Code Journeys: The Maintenance Shortcut
Applitools
 
Library_Management_System_PPT111111.pptx
nmtnissancrm
 

OpenAPI 3.0, And What It Means for the Future of Swagger

  • 1. 1 OpenAPI 3.0, And What It Means for the Future of Swagger
  • 2. 2 Today’s Presenters Ole Lensmar CTO, SmartBear Software Chair, OpenAPI Initiative Ron Ratovsky Swagger Developer Evangelist, SmartBear Software Member, OpenAPI Technical Development Community
  • 3. 3 Today’s Webinar Presented by SmartBear Software PLANNING DESIGN IMPLEMENT + TEST DEPLOY RETIRE eBOOKS WORKSHOPS DESIGN DOCUMENT CODE INTEGRATE FUNCTIONAL PERFORMANCE SECURITY VIRTUALIZATION MONITOR DEPLOY DEPRECATE VERSION TRAININGS CONFERENCES PARTNER INTEGRATIONS OPEN SOURCE OFFERINGS COMMERCIAL OFFERINGS
  • 4. 4 Today’s Agenda • OpenAPI Initiative Overview • Why OAS 3.0 became the standard • What’s new in OAS 3.0 • OAS 3.0 in the API Lifecycle • What’s next for Swagger & SwaggerHub • Live Swagger demo • Q&A
  • 6. 6 History of OpenAPI Initiative • Swagger Project founded in 2010 by Tony Tam / Reverb to design and document API interfaces • Groups large & small drawn to Project Interested in its simplicity, pragmatic approach, potential open governance • Acquired by SmartBear in early 2015 • Swagger 2.0 Spec donated by SmartBear Software to the Open API Initiative • OpenAPI Initiative reaches 27 members, including software providers and industry leaders in banking, healthcare, finance, & tech • OpenAPI 3.0 officially released on 7/26
  • 7. 7 The OpenAPI Initiative Provide an open source, technical community, within which industry participants may easily contribute to building a vendor-neutral, portable and open specification for providing technical metadata for REST APIs The OAI is a collaborative project under the guidance of the The Linux Foundation. LF Projects use open source governance best practices, including license and contribution agreement choices, in keeping with the ideals of Linux.
  • 8. 8 The OpenAPI Initiative - 2 main bodies • BGB - Provides governance for the OpenAPI Spec • Evangelization / Events / Sponsorships • Drives the APIStrat conference (new!) • Expertise & Knowledge Sharing • Licensing / Legal / Trademarks • Does not have any influence on the technical direction of the spec • TDC – Drives the evolution of the OpenAPI Spec • Drives the technical direction of the specification • Managed like any open-source project at https://github.com/OAI • Anyone is welcome and encouraged to join and suggest, discuss, ask and complain!
  • 9. 9 What is the OpenAPI Specification? A common, public contract between services Independent of language, framework, deployment technology YAML or JSON format Supports both API-first and code-first approaches to defining, building and documenting APIs Bottom-up community and usage driven evolution
  • 10. 10 Swagger? OpenAPI? OAS? OAI? Specification Tools
  • 11. 1111 What’s New in OpenAPI 3.0?
  • 12. 12 OAS 3.0 Specification Change Criteria • Clarity - The current "way" something is done doesn't make sense, is complicated, or not clear • Consistency - A portion of the specification is not consistent with the rest, or the industry standard terminology • Necessary functionality - We are missing functionality because of a certain design of the specification • Forward-looking designs - As usage of APIs evolves to new protocols, formats, patterns, we should always be considering what the next important functionality should be • Impact - A change will provide impact on a large number of use cases. We should not be forced to accommodate every use case. We should strive to make the common and important use cases both well supported and common in the definition of the OAI Spec.
  • 13. 13 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 14. 14 Specification Restructure and Improve Reusability OpenAPI 2.0 info host paths parameters security tags externalDocs basePath schemes securityDefinitions responses definitions produces consumes OpenAPI 3.0 info servers paths components security tags externalDocs
  • 15. 15 Specification Restructured and Improve Reusability OpenAPI 3.0 Components schemas responses parameters examples requestBodies headers securitySchemes links callbacks - All reusable components are under one roof - Standardized naming - Added new objects for extended reusability
  • 16. 16 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 17. 17 Improved parameter descriptions - New parameter type: cookie - Remove parameter types: body, formData - All parameters support complex types - Further serialization support by defining media types
  • 18. 18 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 19. 19 Content Negotiation Support - Requests bodies and responses allow defining different schemas and examples for different media types - Improved file upload support - Responses support wildcard code definition - Eliminates `consumes` and `produces` from the spec
  • 20. 20 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 21. 21 Support for Describing Callbacks - Allows definition of async APIs - Callbacks need to be implemented by both clients and servers - Callback URLs are expression based - Callbacks are defined by using the same structure as other path definitions
  • 22. 22 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 23. 23 Introducing OpenAPI Links OpenAPI Links are Client-Computed, Design-Time Parameterized Traversals between Responses and Operations - Creation relations between responses and other operations - Parameters can depend on both the request and response - Client can follow links automatically - Depends on the API definition alone without runtime impact
  • 24. 24 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 25. 25 Enhanced Examples - Examples can live in Parameters, Request Bodies, Responses and Schemas (*) - Examples can be reused - Additional Metadata - Name - Description - Can reference an external example
  • 26. 26 So, What’s New in OAS 3.0? ✓ Improved reusability ✓ Parameter changes ✓ Content negotiation support ✓ Support for describing callbacks ✓ Links to express relationships between operations ✓ Improved examples ✓ Enhanced security definitions
  • 27. 27 Enhanced Security Definitions - Renamed OAuth2 flows - Support for multiple flows - OpenID Connect support - ‘basic’ was replaced by ‘http’ - Supports different schemes and bearer formats
  • 28. 28 OAS 3.0 – Additional Changes - CommonMark support in descriptions - Extended JSON Schema support - Multiple and templated server definitions - Support for TRACE method - No payload support for DELETE, GET…
  • 29. 29 3.0 is a complete breaking change from 2.0 1. definitions, parameters, responses and securityDefinitions all moved under components 2. schemes, host, basePath have been replaced by servers 3. Parameters need to be restructured: - Type definitions move under schema - Body and formData parameters extracted to a requestBody 4. Responses need to be restructred: - ‘produces’media types moved to this level 5. Some security definition changes: - `basic` changed to `http` - OAuth2 flows renamed, given a slightly different structure
  • 30. 3030 OAS 3.0 in the API Lifecycle
  • 31. 31 Driving the API Lifecycle with OAS Design Implementation Testing Mocking Documentation Virtualization Deployment / Runtime Clients Security, Usage policies, Monitoring, Caching, etc Developer portals, Code samples, User guides, etc. Functional / Runtime simulations Functional, Security, Load, Compliance, etc. Generated server code/artifacts Prototyping Generated client libraries Object reuse, linking, Callbacks, etc.
  • 33. 33 Swagger: The World’s Most Popular API Tooling for OpenAPI • 10 Million Downloads Worldwide • Combination of Swagger UI and Swagger Editor downloaded once every 3 seconds • SwaggerHub, launched 2015 – 60k API developers, architects, devops, technical writers, & managers use SwaggerHub to design & document APIs
  • 34. 34 Built for OpenAPI Specification Swagger Editor Swagger UI Swagger Codegen HTML, Javascript, and CSS assets that dynamically generate documentation The first open source editor fully dedicated to OAS-based APIs. Turn your OAS definition into code, generating server stubs & client SDKs
  • 35. 35 SwaggerHub: API Design & Documentation Platform SwaggerHub is an integrated API design and documentation platform, built for teams to drive consistency and discipline across the API development workflow.
  • 36. 36 Timeline of OAS 3.0 Support AUGUST • Swagger-UI/Editor ✓Editing/Viewing – out now! ▪ Sandbox functionality – end of August • Swagger-JS – end of August • Swagger-Core – mid August • Swagger-Parser – mid August • Swagger-Converter – end of August • Swagger-Inflector – end of August SEPTEMBER • Swagger-Validator – mid September • Swagger-Codegen – end of September • SwaggerHub – mid September
  • 37. 3737 Let’s See It in Action
  • 38. 38 Next Steps Additional Resources Swagger.io/docs/specification Learn Try Connect GitHub SwaggerAPI Twitter @SwaggerAPI Subscribe swagger.io/blog
  • 39. 39 The Platform for Designing and Documenting APIs with Swagger Try SwaggerHub for Free www.swaggerhub.com