EMPIRICAL ANALYSIS ON OPENAPI TOPIC EXPLORATION AND DISCOVERY TO SUPPORT THE DEVELOPER COMMUNITY

被引:2
作者
da Rocha Araujo, Leonardo [1 ]
Rodriguez, Guillermo [1 ]
Vidal, Santiago [1 ]
Marcos, Claudia [2 ]
dos Santos, Rodrigo Pereira [3 ]
机构
[1] UNICEN, ISISTAN CONICET, Tandil, Argentina
[2] UNICEN, ISISTAN CIC, Tandil, Argentina
[3] Univ Fed Estado Rio de Janeiro, Rio de Janeiro, Brazil
关键词
RESTful web services; APIs; documentation; topic modeling; OpenAPI; topic coherence;
D O I
10.31577/cai_2021_6_1345
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
OpenAPI has become a dominant standard for documentation in the service-oriented software industry. OpenAPI is used in many analysis and reengineering approaches for RESTful service and microservice-based systems. An OpenAPI document has several components that are usually filled by humans using natural language (e.g. description of a certain functionality). Thus, subjectivity may lead to inconsistencies and ambiguities. Understanding what an API does is a challenging question. As a consequence, this issue could hinder developers from identifying the functionality of APIs, after reading all its components. Along this line, we argue that developers will be provided with supportive tools to find those APIs that better suit their needs. In this paper, we propose a step towards creating these kinds of tools by empirically analyzing a set of 2 000 OpenAPI documents with the goal of extracting the main topics of an API using three topic modeling algorithms. To address this issue, we focus on three tasks: i) determine which component of an OpenAPI document provides the most meaningful information, ii) compare three state-of-the-art topic modeling algorithms, and iii) determine the optimal number of topics to represent an API. Our findings show that the best results could be obtained from the Description component by using the Non-negative Matrix Factorization (NMF) or Latent Semantic Indexing (LSI) algorithms. To help developers find services in the OpenAPI directory, we also propose a prototype tool to explore the OpenAPI documents and analyze extracted topics to assess if the APIs meet developers needs.
引用
收藏
页码:1345 / 1369
页数:25
相关论文
共 27 条
  • [1] Alghamdi R, 2015, INT J ADV COMPUT SC, V6, P147
  • [2] Alhindawi N, 2016, INT J ADV COMPUT SC, V7, P200
  • [3] Nguyen AT, 2012, IEEE INT CONF AUTOM, P70, DOI 10.1145/2351676.2351687
  • [4] [Anonymous], 2007, EXPT DESIGNS USING A
  • [5] Microservices Identification Through Interface Analysis
    Baresi, Luciano
    Garriga, Martin
    De Renzis, Alan
    [J]. SERVICE-ORIENTED AND CLOUD COMPUTING (ESOCC 2017), 2017, 10465 : 19 - 33
  • [6] Bogner Justus, 2020, EUR C SOFTW ARCH, P215, DOI [10.1007/978-3-030-59155-716, DOI 10.1007/978-3-030-59155-716]
  • [7] Chang J., 2009, ADV NEURAL INFORM PR, P288
  • [8] Feldman R, 2007, The text mining handbook: advanced approaches in analyzing unstructured data
  • [9] Using heuristics to estimate an appropriate number of latent topics in source code analysis
    Grant, Scott
    Cordy, James R.
    Skillicorn, David B.
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2013, 78 (09) : 1663 - 1678
  • [10] Kamath SS, 2016, J WEB ENG, V15, P110