Skip to content

LLM-Generated Microservice Implementations from RESTful API Definitions

Feb 2025 · International Conference on Evaluation of Novel Approaches to Software Engineering · Vol abs/2502.09766 · 16 citations · ⚡ 1 influential · 38 references
Computer Science

TL;DR

A system that uses Large Language Models (LLMs) to automate the API-first development of RESTful microservices and assists in creating OpenAPI specification, generating server code from it, and refining the code through a feedback loop that analyzes execution logs and error messages is presented.

Abstract

The growing need for scalable, maintainable, and fast-deploying systems has made microservice architecture widely popular in software development. This paper presents a system that uses Large Language Models (LLMs) to automate the API-first development of RESTful microservices. This system assists in creating OpenAPI specification, generating server code from it, and refining the code through a feedback loop that analyzes execution logs and error messages. By focusing on the API-first methodology, this system ensures that microservices are designed with well-defined interfaces, promoting consistency and reliability across the development life-cycle. The integration of log analysis enables the LLM to detect and address issues efficiently, reducing the number of iterations required to produce functional and robust services. This process automates the generation of microservices and also simplifies the debugging and refinement phases, allowing developers to focus on higher-level design and integration tasks. This system has the potential to benefit software developers, architects, and organizations to speed up software development cycles and reducing manual effort. To assess the potential of the system, we conducted surveys with six industry practitioners. After surveying practitioners, the system demonstrated notable advantages in enhancing development speed, automating repetitive tasks, and simplifying the prototyping process. While experienced developers appreciated its efficiency for specific tasks, some expressed concerns about its limitations in handling advanced customizations and larger scale projects. The code is publicly available at https://github.com/sirbh/code-gen

View source

Similar papers

Open access 2026

Architecture-Centric Code Migration for Legacy Industrial Systems Using LLMs

This research focuses on Maven configuration and structure updates and explores how the CodeT5 model can automate the migration of Java 8 projects to Java 17, finding the model accelerates parts of migration but remains unsuitable for fully automated use.

Ayush Luhar, Dev Trivedi, Vatsal Patel et al. · 0 citations
Review Open access Jul 2026

Formal Verification Under Evolution in Microservice-Based Systems: A Systematic Literature Review

Microservice-based systems evolve continuously through API changes, service splits and merges, dependency churn, and deployment-topology drift driven by DevOps practices. This rapid evolution erodes the assumptions encoded in formal models, test suites, and architectural descriptions, leaving practitioners with limited...

R. Gómez, Ebeid Elsayed, Enrique R. Zarate et al. · 0 citations

RI: A DSL for Software Development Project Continuous Configuration

A Domain-Specific Language (DSL), named RI language, designed for the declarative description of microservices, along with a supporting tool, TSE (Toolbox Service Executor), implemented in Python and based on the RI grammar, enables the representation of structural and operational aspects of services in a technology-ag...

Cássio Ritse, Machado Dos, S. Silva et al. · 0 citations
Open access Aug 2026

Leveraging Generative AI in Software Development: Advantages and Difficulties

The paper is trying to deeply analyze the pros and cons of implementing GenAI into software development, analysing current applications used in software development life cycle (SDLC), drawing upon case studies and programmer experience, and examining effect on code quality, team working and project timeline.

P. Arun, Jagdale, Deepti Ameta et al. · 0 citations
Open access Aug 2026

Devevopment of a method for improving maintainability of microservice software based on centralized outgoing event management

A method developed for centralized management of output events, consisting of six components, provides complete isolation of business logic from event transport mechanisms through declarative routing rules and dependence inversion and is appropriate for microservices with more than two event transport mechanisms or mor...

V. Lakhai, M. Seniv · 0 citations
Jul 2026

Structural Validation of LLM-Generated Microservice Decompositions Using Source-Code Dependencies

The findings demonstrate that structural evaluations of LLM-generated decompositions should explicitly control for mapping coverage, as apparent differences between prompting strategies may otherwise reflect methodological bias rather than genuine architectural quality.

Daniel Silva, Renan Alves, Emanuel Dantas et al. · 0 citations

Related blog posts

Microsoft Research Blog Oct 15, 2026

Proof-based general-purpose computing with Magnetar

Zero-knowledge proofs can verify computing results without rerunning workloads or exposing sensitive data. Magnetar helps bring them into the mainstream with support for standard programming languages, major speed gains, and quantum-resistant security. The post Proof-based general-purpose computing with Magnetar appeared first on Microsoft Research.

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

Microsoft Research Blog Oct 6, 2026

What AI gets wrong and what failure teaches us

Jennifer Neville did not want to go into computer science—but that’s exactly where she landed. Neville discusses the starts and stops that led to her professional sweet spot and her work identifying “surprising failures” making it hard for AI to handle complexity.  The post What AI gets wrong and what failure teaches us appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.