Lune

OOPSLA2025顶会

RestPi: Path-Sensitive Type Inference for REST APIs

Mark W. Aldrich, Kyla Levin, Michael Coblenz, Jeffrey S. Foster

2025年份
1被引次数

摘要

JEFFREY S. FOSTER, Tufts University, USA REST APIs form the backbone of modern interconnected systems by providing a language-agnostic communication interface. REST API specifications should clearly describe all response types, but automatically generating specifications is difficult with existing tools.

We present REST 𝜋 , a type inference engine capable of automatically generating REST API specifications. The novel contribution of REST 𝜋 is our use of path-sensitive type inference, which encodes symbolic pathconstraints directly into a type system. This allows REST 𝜋 to enumerate all response types by considering each distinct execution path through an endpoint implementation. We implement path-sensitive type inference for Ruby, a popular language used for REST API servers. We evaluate REST 𝜋 by using it to infer types for 132 endpoints across 5 open-source REST API implementations without utilizing existing specifications or test suites. We find REST 𝜋 performs type inference efficiently and produces types that are more precise and complete than those obtained via an HTTP proxy. Our results suggest that path-sensitivity is a key technique to enumerate distinct response types for REST endpoints.

CCS Concepts: • Software and its engineering → Data types and structures; Documentation.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

它引用的顶会 Paper3

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖