Abstract
Web Application Programming Interfaces (APIs) decouple the internal implementation of a service from its consumers which can reuse and compose them to rapidly build new applications. Many Web APIs are described with the OpenAPI Specification (OAS). The goal of our research is to check the feasibility of using API descriptions found in public open source repositories to study how APIs evolve over time. To do so, we collected a large dataset of OAS documents by crawling open source repositories, we parsed the corresponding metadata and measured the API size in order to extract a simple model to track the lifecycle of API artifacts and observe common evolution behaviors. Our preliminary results indicate that only a subset of the APIs changes, but as opposed to the expectation that APIs should only grow to maintain backward compatibility we also detected a number of APIs with a more variable history. We also study the stability of API artifacts over time and whether APIs are more or less likely to change as they age.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Change history
11 May 2021
In Chapter 10, the term “paths” was used instead of the term “operation.” This has been corrected and the term “operations” is now used throughout the paper.
References
OpenAPI Initiative. https://www.openapis.org/. Accessed 30 Dec 2020
Prance. https://pypi.org/project/prance/. Accessed 28 Dec 2020
open-api-spec-validator. https://github.com/p1c2u/openapi-spec-validator. Accessed 29 Dec 2020
Abelló, A., Ayala, C.P., Farré, C., Gómez, C., Oriol, M., Romero, O.: A data-driven approach to improve the process of data-intensive API creation and evolution. In: Proceedings of the Forum and Doctoral Consortium Papers Presented at CAiSE, vol. 1848, pp. 1–8. CEUR-WS.org (2017)
Antonio, G.D., Pablo, F., Ruiz-Cortés, A.: An analysis of RESTful APIs offerings in the industry. In: Proceedings of the International Conference on Service-Oriented Computing (ICSOC), pp. 589–604 (2017)
Dig, D., Johnson, R.: How do APIs evolve? A story of refactoring. J. Softw. Maint. Evol. Res. Pract. 18(2), 83–107 (2006)
Eilertsen, A.M., Bagge, A.H.: Exploring API/client co-evolution. In: 2nd IEEE/ACM International Workshop on API Usage and Evolution (WAPI@ICSE), pp. 10–13 (2018)
Espinha, T., Zaidman, A., Gross, H.G.: Web API growing pains: stories from client developers and their code. In: Proceedings of the IEEE Conference on Software Maintenance, Reengineering, and Reverse Engineering (CSMR-WCRE). IEEE (2014)
Hora, A., Etien, A., Anquetil, N., Ducasse, S., Valente, M.T.: APIEvolutionMiner: keeping API evolution under control. In: Proceedings of the IEEE Conference on Software Maintenance, Reengineering, and Reverse Engineering (CSMR-WCRE), pp. 420–424 (2014)
Hora, A., Robbes, R., Valente, M.T., Anquetil, N., Etien, A., Ducasse, S.: How do developers react to API evolution? A large-scale empirical study. Softw. Qual. J. 26(1), 161–191 (2018)
Koçi, R., Franch, X., Jovanovic, P., Abelló, A.: Classification of changes in API evolution. In: Proceedings of the 23rd International Enterprise Distributed Object Computing Conference (EDOC), pp. 243–249 (2019)
Lauret, A.: The Design of Web APIs. Manning (2019)
Li, J., Xiong, Y., Liu, X., Zhang, L.: How does web service API evolution affect clients? In: Proceedings of the 20th International Conference on Web Services (ICWS) (2013)
Lübke, D., Zimmermann, O., Pautasso, C., Zdun, U., Stocker, M.: Interface evolution patterns—balancing compatibility and flexibility across microservices lifecycles. In: Proceedings of the 24th European Conference on Pattern Languages of Programs, EuroPLoP 2019. ACM (2019)
Murer, S., Bonati, B., Furrer, F.: Managed Evolution - A Strategy for Very Large Information Systems. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-01633-2
Pautasso, C., Zimmermann, O.: The Web as a software connector: Integration resting on linked resources. IEEE Softw. 35, 93–98 (2018)
Shi, L., Zhong, H., Xie, T., Li, M.: An empirical study on evolution of API documentation. In: Proceedings of the 14th International Conference on Fundamental Approaches to Software Engineering: Part of the Joint European Conferences on Theory and Practice of Software, FASE 2011/ETAPS 2011, pp. 416–431 (2011)
Sohan, S.M., Anslow, C., Maurer, F.: A case study of Web API evolution. In: Proceedings of the IEEE World Congress on Services, pp. 245–252 (2015)
Wang, S., Keivanloo, I., Zou, Y.: How do developers react to RESTful API evolution? In: Franch, X., Ghose, A.K., Lewis, G.A., Bhiri, S. (eds.) ICSOC 2014. LNCS, vol. 8831, pp. 245–259. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-662-45391-9_17
Yang, J., Wittern, E., Ying, A.T.T., Dolby, J., Tan, L.: Towards extracting web API specifications from documentation. In: 2018 IEEE/ACM 15th International Conference on Mining Software Repositories (MSR), pp. 454–464 (2018)
Acknowledgements
This work is funded by the SNSF, with the API-ACE project nr. 184692.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Di Lauro, F., Serbout, S., Pautasso, C. (2021). Towards Large-Scale Empirical Assessment of Web APIs Evolution. In: Brambilla, M., Chbeir, R., Frasincar, F., Manolescu, I. (eds) Web Engineering. ICWE 2021. Lecture Notes in Computer Science(), vol 12706. Springer, Cham. https://doi.org/10.1007/978-3-030-74296-6_10
Download citation
DOI: https://doi.org/10.1007/978-3-030-74296-6_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-74295-9
Online ISBN: 978-3-030-74296-6
eBook Packages: Computer ScienceComputer Science (R0)