The document discusses OpenAPI Generator, an open source code generator library that generates API clients, servers, and documentation from OpenAPI specifications. It supports over 40 programming languages and frameworks. The presentation introduces OpenAPI Generator and its capabilities, provides examples of how it can be used to generate clients for different languages from a single API specification, and discusses the speaker's use cases including SDK generation, infrastructure as code, and performance testing. It encourages contributions to the project and questions.
13. OpenAPI Generator
13
• Open source code generator librar
y
• Written in Java, uses Mustache template
s
• Generates API clients, server stubs, doc
s
• Supports 40+ tech stack
s
• Community fork of Swagger CodeGen
• Almost 10k GitHub stars
Almost 2k contributors
14. How does it work?
14
OpenAPI
Specification
OpenAPI
Generator
API
Clients
API
Servers
API Docs
Swagger-Parser
Generator
Templates
19. What will be generated?
19
• Project structur
e
• OpenAPI Generator metadat
a
• READM
E
• CI confi
g
• Library dependencie
s
• Documentatio
n
• Unit test
s
• API client:
Clients, data model
s
• API server stubs:
Endpoints, controllers, payloads
25. SOA with custom ESB (mostly Java)
25
ESB
Identity
Service
Adapter
Service
Data
Service
Consolidation
Service
Routing
Service
Message
Service
Monitor
Service
26. SDK Clients for a REST API
26
API Gateway (OpenAPI)
node.js Python Go Java