Type-Directed Program Synthesis for RESTful APIs
Not on the map. Why?
Abstract (arXiv)
With the rise of software-as-a-service and microservice architectures, RESTful APIs are now ubiquitous in mobile and web applications. A service can have tens or hundreds of API methods, making it a challenge for programmers to find the right combination of methods to solve their task. We present APIphany, a component-based synthesizer for programs that compose calls to RESTful APIs. The main innovation behind APIphany is the use of precise semantic types, both to specify user intent and to direct the search. APIphany contributes three novel mechanisms to overcome challenges in adapting component-based synthesis to the REST domain: (1) a type inference algorithm for augmenting REST specifications with semantic types; (2) an efficient synthesis technique for "wrangling" semi-structured data, which is commonly required in working with RESTful APIs; and (3) a new form of simulated execution to avoid executing APIs calls during synthesis. We evaluate APIphany on three real-world APIs and 32 tasks extracted from GitHub repositories and StackOverflow. In our experiments, APIphany found correct solutions to 29 tasks, with 23 of them reported among top ten synthesis results.
Key facts. Cited by 2 papers in the map (data through 24 Nov 2026). Submitted 30 Mar 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 1.
2 papers.
- 2024API-guided Dataset Synthesis to Finetune Large Code Modelscited by 11
- 2026Capability-Grounded Agentic Planningcited by 0
- 2026Capability-Grounded Agentic Planning29 Oct 2026
- 2024API-guided Dataset Synthesis to Finetune Large Code Models15 Aug 2024