SpecWeaver: End-to-End HTTP API Specification Inference across Multi-layer Routing in Production Web Services
Proceedings of the ACM on Software Engineering · 30.06.2026 · 3 (FSE) · 4437-4458
DOI: 10.1145/3808202 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 30.06.2026. Verfasst von Wenbo Hu und 7 weiteren Autor:innen. Die Arbeit nennt 54 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-ND 4.0). Gefördert von: Chinese National Natural Science Foundation.
Abstract (Originalsprache)
HTTP API specifications are essential for modern web development, yet existing tools fail in production environments due to multi-layer routing. Production deployments employ infrastructure-level and framework-level routing that apply sequential rewrite and dispatch rules, creating a gap between client-visible external paths and internal paths. To address this challenge, we present SpecWeaver, the first tool to automatically extract and unify heterogeneous configuration-defined routing rules with code-level handlers. Our approach combines routing component information gathering, iterative configuration discovery using LLMs, and routing extraction from diverse configuration files to construct a routing graph representation that captures end-to-end routing relationships. Evaluated on 10 production applications, SpecWeaver extracts 36,361 rewrite rules and 48,394 dispatch rules with 99.44%/100% precision, materializes 8,288 external API paths, contributes 5,162 previously undocumented APIs with 160 unauthenticated endpoints, helps an existing testing tool improve testing coverage by 328.6% compared to the baseline, and discovers 305 bugs.
Förderung
- Chinese National Natural Science Foundation
Zitieren
APA
Hu, W., Lu, J., Chen, J., Li, F., Shi, C., Shi, X., Wang, J., & Huo, W. (2026). SpecWeaver: End-to-End HTTP API Specification Inference across Multi-layer Routing in Production Web Services. Proceedings of the ACM on Software Engineering, 3(FSE), 4437-4458. https://doi.org/10.1145/3808202
Vancouver
Hu W, Lu J, Chen J, Li F, Shi C, Shi X, et al. SpecWeaver: End-to-End HTTP API Specification Inference across Multi-layer Routing in Production Web Services. Proceedings of the ACM on Software Engineering. 2026;3(FSE):4437-4458. doi:10.1145/3808202
BibTeX
@article{Hu2026,
author = {Hu, Wenbo and Lu, Jie and Chen, Jingting and Li, Feng and Shi, Chenghang and Shi, Xiaonan and Wang, Jinchen and Huo, Wei},
title = {SpecWeaver: End-to-End HTTP API Specification Inference across Multi-layer Routing in Production Web Services},
journal = {Proceedings of the ACM on Software Engineering},
year = {2026},
volume = {3},
number = {FSE},
pages = {4437--4458},
doi = {10.1145/3808202}
}
EUVIMED