EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Speculate: Generating REST API Specifications using LLMs

Krishanu Singh, Kushagra Karar, Abhilash Jindal, Guowei Yang

Proceedings of the ACM on Software Engineering · 30.06.2026 · 3 (FSE) · 503-524

DOI: 10.1145/3797118 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 30.06.2026. Verfasst von Krishanu Singh und 3 weiteren Autor:innen. Die Arbeit nennt 35 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

REST APIs are widely used for accessing web services. To support their use and testing, developers often write API specifications in open formats like OpenAPI. However, writing these specifications manually is tedious and error-prone, leading to incomplete or outdated specifications that can hinder both API usage and automated testing. Existing tools attempt to generate API specifications from source code using static or dynamic analysis. Unfortunately, these tools are often tightly coupled to specific languages and frameworks, making them hard to generalize and extend. This paper presents Speculate, the first approach to combine lightweight static analysis with large language models (LLMs) to automatically generate REST API specifications from source code. By leveraging LLMs trained on diverse codebases, Speculate generalizes easily across languages and frameworks. We evaluate Speculate on 19 real-world web repositories spanning two programming languages and three REST frameworks. Our results show that Speculate outperforms existing tools on both precision and recall across all dimensions.

Zitieren

APA

Singh, K., Karar, K., Jindal, A., & Yang, G. (2026). Speculate: Generating REST API Specifications using LLMs. Proceedings of the ACM on Software Engineering, 3(FSE), 503-524. https://doi.org/10.1145/3797118

Vancouver

Singh K, Karar K, Jindal A, Yang G. Speculate: Generating REST API Specifications using LLMs. Proceedings of the ACM on Software Engineering. 2026;3(FSE):503-524. doi:10.1145/3797118

BibTeX
@article{Singh2026,
  author = {Singh, Krishanu and Karar, Kushagra and Jindal, Abhilash and Yang, Guowei},
  title = {Speculate: Generating REST API Specifications using LLMs},
  journal = {Proceedings of the ACM on Software Engineering},
  year = {2026},
  volume = {3},
  number = {FSE},
  pages = {503--524},
  doi = {10.1145/3797118}
}
Kostenlos starten →