You Can REST Now: Automated REST API Documentation and Testing via LLM-Assisted Request Mutations
Alix Decrop, Xavier Devroey, Mike Papadakis, Pierre-Yves Schobbens, Gilles Perrouin

TL;DR
RESTSpecIT leverages large language models to automate REST API documentation inference and testing with minimal user input, improving efficiency and accuracy in identifying API routes, parameters, and errors.
Contribution
This paper introduces RESTSpecIT, the first LLM-based tool that automatically infers API documentation and performs black-box testing with minimal user input, without requiring model fine-tuning.
Findings
Achieves 88.62% route inference accuracy
Discovers undocumented API data effectively
Operates efficiently in cost and runtime
Abstract
REST APIs are prevalent among web service implementations, easing interoperability through the HTTP protocol. API testers and users exploit the widely adopted OpenAPI Specification (OAS), a machine-readable standard to document REST APIs. However, documenting APIs is a time-consuming and error-prone task, and existing documentation is not always complete, publicly accessible, or up-to-date. This situation limits the efficiency of testing tools and hinders human comprehension. Large Language Models (LLMs) offer the potential to automatically infer API documentation, using their colossal training data. In this paper, we present RESTSpecIT, the first automated approach that infers documentation and performs black-box testing of REST APIs by leveraging LLMs. Our approach requires minimal user input compared to state-of-the-art tools; Given an API name and an LLM access key, RESTSpecIT…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Software Engineering Research · Service-Oriented Architecture and Web Services
