Christopher Walles
OpenAPI meets OpenAI
#1about 5 minutes
Using OpenAPI specifications for automated code generation
The OpenAPI specification provides a language-agnostic way to describe REST APIs, which serves as documentation and enables automated generation of client libraries and server stubs.
#2about 5 minutes
Generating functional backend code with LLMs
Large language models can extend OpenAPI's code generation capabilities beyond simple stubs to create functional backend code, particularly for database-centric operations.
#3about 6 minutes
Structuring a Spring backend for code generation
The code generation process targets a specific Spring framework architecture, breaking the problem down into generating controllers, repositories, entities, and schema classes.
#4about 7 minutes
Crafting prompts to generate schemas and entities
A structured four-part prompt including task, rules, input, and context is used to reliably generate schema classes and database entities from the OpenAPI specification.
#5about 4 minutes
Generating controllers and repositories from the spec
By providing the LLM with the operation specification and previously generated classes as context, it can generate complete controller endpoints and database repositories.
#6about 3 minutes
Reviewing the limitations of this AI-driven approach
While the generated code is reliable for database-centric tasks, limitations include placing logic in controllers, lacking authorization, and the inherent incompleteness of the OpenAPI spec.
Related jobs
Jobs that call for the skills explored in this talk.
Featured Partners
Related Videos
Using LLMs in your Product
Daniel Töws
Building APIs in the AI Era
Hugo Guerrero
Bringing the power of AI to your application.
Krzysztof Cieślak
Livecoding with AI
Rainer Stropek
Building AI-Driven Spring Applications With Spring AI
Timo Salm, Sandra Ahlgrimm
AI: Superhero or Supervillain? How and Why with Scott Hanselman
Scott Hanselman
Java Meets AI: Empowering Spring Developers to Build Intelligent Apps
Timo Salm
AI-Powered Code Documentation: Simplify the Complex
Patrick Schnell
From learning to earning
Jobs that call for the skills explored in this talk.


Senior Backend Engineer – AI Integration (m/w/x)
chatlyn GmbH
Vienna, Austria
Senior
JavaScript
AI-assisted coding tools


![Senior Software Engineer [TypeScript] (Prisma Postgres)](https://wearedevelopers.imgix.net/company/283ba9dbbab3649de02b9b49e6284fd9/cover/oKWz2s90Z218LE8pFthP.png?w=400&ar=3.55&fit=crop&crop=entropy&auto=compress,format)

Senior Software Engineer [TypeScript] (Prisma Postgres)
Prisma
Remote
Senior
Node.js
TypeScript
PostgreSQL
Agentic AI Architect - Python, LLMs & NLP
FRG Technology Consulting
Intermediate
Azure
Python
Machine Learning
AI/ML Team Lead - Generative AI (LLMs, AWS)
Provectus
Canton de Saint-Mihiel, France
Remote
€96K
Senior
Python
PyTorch
TensorFlow
+4
AI/ML Team Lead - Generative AI (LLMs, AWS)
Provectus
Canton de Saint-Mihiel, France
Remote
€96K
Senior
Python
PyTorch
TensorFlow
+4





