Enhancing API documentation by inter-endpoint dependency graphs
Panagiotis Papadeas, Dimitrios Gerokonstantis, Christos Hadjichristofi, Vassilios Vescoukis
DOI: http://dx.doi.org/10.15439/2025F8035
Citation: Proceedings of the 20th Conference on Computer Science and Intelligence Systems (FedCSIS), M. Bolanowski, M. Ganzha, L. Maciaszek, M. Paprzycki, D. Ślęzak (eds). ACSIS, Vol. 43, pages 357–362 (2025)
Abstract. APIs are the main mechanism for integrating heterogeneous components in modern software systems. API documentation typically treats each endpoint as autonomous, leaving out information about other endpoints that produce or consume input or output data, which is useful in rapidly orchestrating valid call sequences. This makes the development, testing and maintenance of systems that use APIs to internally implement business logic, or integrate with third-party API-based services, more complex. This paper addresses this gap by introducing static and dynamic analysis methods to automatically discover and document inter-endpoint dependencies; static analysis uses existing API documentation, while dynamic is based on logging API usage. Both methods are integrated into RADAR, a tool for extracting and visualizing graphs, to illustrate such inter-endpoint dependencies through exchanged data. Case study on the PayPal API demonstrates the value of adding dependency graphs to API documentation to support rapid development and documentation of software systems.
References
- N. Oostvogels, J. De Koster, and W. De Meuter, “Inter-parameter Constraints in Contemporary Web APIs,” 2017, pp. 323–335. https://dx.doi.org/10.1007/978-3-319-60131-1_18.
- A. Martin-Lopez, “Automated analysis of inter-parameter dependencies in web APIs,” in Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering: Companion Proceedings, New York, NY, USA: ACM, Jun. 2020, pp. 140–142. https://dx.doi.org/10.1145/3377812.3382173.
- A. Martin-Lopez, S. Segura, C. Muller, and A. Ruiz-Cortes, “Specification and Automated Analysis of Inter-Parameter Dependencies in Web APIs,” IEEE Trans Serv Comput, vol. 15, no. 4, pp. 2342–2355, Jul. 2022, https://dx.doi.org/10.1109/TSC.2021.3050610.
- A. Martin-Lopez, S. Segura, and A. Ruiz-Cortés, “A Catalogue of Inter-parameter Dependencies in RESTful Web APIs,” in Service-Oriented Computing: 17th International Conference, ICSOC 2019, Toulouse, France, October 28–31, 2019, Proceedings, Berlin, Heidelberg: Springer-Verlag, 2019, pp. 399–414. https://dx.doi.org/10.1007/978-3-030-33702-5_31.
- Q. Wu, L. Wu, G. Liang, Q. Wang, T. Xie, and H. Mei, “Inferring dependency constraints on parameters for web services,” in Proceedings of the 22nd international conference on World Wide Web, in WWW ’13. New York, NY, USA: ACM, May 2013, pp. 1421–1432. https://dx.doi.org/10.1145/2488388.2488512.
- Xiaoying Bai, Wenli Dong, Wei-Tek Tsai, and Yinong Chen, “WSDL-Based Automatic Test Case Generation for Web Services Testing,” in IEEE International Workshop on Service-Oriented System Engineering (SOSE’05), IEEE, 2005, pp. 215–220. https://dx.doi.org/10.1109/SOSE.2005.43.
- V. Atlidakis, P. Godefroid, and M. Polishchuk, “RESTler: Stateful REST API Fuzzing,” in 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE), IEEE, May 2019, pp. 748–758. https://dx.doi.org/10.1109/ICSE.2019.00083.
- A. Bertolino, P. Inverardi, P. Pelliccione, and M. Tivoli, “Automatic synthesis of behavior protocols for composable web-services,” in Proceedings of the 7th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on The foundations of software engineering, in ESEC/FSE ’09. New York, NY, USA: ACM, Aug. 2009, pp. 141–150. https://dx.doi.org/10.1145/1595696.1595719.
- P. Papadeas, “Automatic generation of dependency documentation between endpoint calls of a REST API,” National Technical University of Athens, 2023. Accessed: Apr. 27, 2025. [Online]. Available: http://artemis.cslab.ece.ntua.gr:8080/jspui/handle/123456789/18728
- D.-D. Gerokonstantis, “Dynamic Analysis of Inter-endpoint Dependencies in RESTful APIs,” National Technical University of Athens, 2024. Accessed: Apr. 27, 2025. [Online]. Available: http://artemis.cslab.ece.ntua.gr:8080/jspui/handle/123456789/19419
- D. Lalias, “Web application for visualizing dependencies between endpoints of a REST interface,” National Technical University of Athens, 2024. Accessed: Apr. 27, 2025. [Online]. Available: http://artemis.cslab.ece.ntua.gr:8080/jspui/handle/123456789/19020