Automated Program Repair Based on REST API Specifications Using Large Language Models
By: Katsuki Yamagishi , Norihiro Yoshida , Erina Makihara and more
Potential Business Impact:
Fixes computer code that talks to online services.
Many cloud services provide REST API accessible to client applications. However, developers often identify specification violations only during testing, as error messages typically lack the detail necessary for effective diagnosis. Consequently, debugging requires trial and error. This study proposes dcFix, a method for detecting and automatically repairing REST API misuses in client programs. In particular, dcFix identifies non-conforming code fragments, integrates them with the relevant API specifications into prompts, and leverages a Large Language Model (LLM) to produce the corrected code. Our evaluation demonstrates that dcFix accurately detects misuse and outperforms the baseline approach, in which prompts to the LLM omit any indication of code fragments non conforming to REST API specifications.
Similar Papers
Automated Repair of C Programs Using Large Language Models
Software Engineering
Fixes computer code bugs automatically.
RelRepair: Enhancing Automated Program Repair by Retrieving Relevant Code
Software Engineering
Helps computers fix software bugs using project details.
A Framework for Testing and Adapting REST APIs as LLM Tools
Software Engineering
Helps smart computer programs use company tools.