LLM-Generated Microservice Implementations from RESTful API Definitions

Saurabh Chauhan, Zeeshan Rasheed, Abdul Malik Sami, Zheying Zhang, Jussi Rasku, Kai-Kristian Kemell, Pekka Abrahamsson

2025

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.

Download


Paper Citation


in Harvard Style

Chauhan S., Rasheed Z., Sami A., Zhang Z., Rasku J., Kemell K. and Abrahamsson P. (2025). LLM-Generated Microservice Implementations from RESTful API Definitions. In Proceedings of the 20th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE; ISBN 978-989-758-742-9, SciTePress, pages 161-173. DOI: 10.5220/0013391000003928


in Bibtex Style

@conference{enase25,
author={Saurabh Chauhan and Zeeshan Rasheed and Abdul Sami and Zheying Zhang and Jussi Rasku and Kai-Kristian Kemell and Pekka Abrahamsson},
title={LLM-Generated Microservice Implementations from RESTful API Definitions},
booktitle={Proceedings of the 20th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE},
year={2025},
pages={161-173},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0013391000003928},
isbn={978-989-758-742-9},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 20th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE
TI - LLM-Generated Microservice Implementations from RESTful API Definitions
SN - 978-989-758-742-9
AU - Chauhan S.
AU - Rasheed Z.
AU - Sami A.
AU - Zhang Z.
AU - Rasku J.
AU - Kemell K.
AU - Abrahamsson P.
PY - 2025
SP - 161
EP - 173
DO - 10.5220/0013391000003928
PB - SciTePress