A Mixed-Method Approach to Recommend Corrections and Correct REST Antipatterns

被引:0
|
作者
Sabir, Fatima [1 ,2 ]
Gueheneuc, Yann-Gael [1 ]
Palma, Francis [3 ]
Moha, Naouel [4 ]
Rasool, Ghulam [2 ]
Akhtar, Hassan [5 ]
机构
[1] Concordia Univ, Dept Comp Sci, Montreal, PQ H3G 1M8, Canada
[2] COMSATS Univ Islamabad, Dept Comp Sci, Islamabad 45550, Pakistan
[3] Linnaeus Univ, Dept Comp Sci & Media Technol, S-35195 Vaxjo, Smaland, Sweden
[4] Univ Quebec, Ecole Technol Super, Dept Comp Sci, Montreal, PQ H3C 3P8, Canada
[5] Ericsson Islamabad, Dept Serv Delivery, Islamabad 44000, Pakistan
基金
加拿大自然科学与工程研究理事会;
关键词
Codes; Tools; Social networking (online); Simple object access protocol; Measurement; Linguistics; History; Rest APIs; rest antipatterns; recommendations; corrections; change history; CODE-1ST WEB SERVICES; SMELLS; PATTERNS; IMPACT;
D O I
10.1109/TSE.2021.3117023
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many companies, e.g., Facebook and YouTube, use the REST architecture and provide REST APIs to their clients. Like any other software systems, REST APIs need maintenance and must evolve to improve and stay relevant. Antipatterns-poor design practices-hinder this maintenance and evolution. Although the literature defines many antipatterns and proposes approaches for their (automatic) detection, their correction did not receive much attention. Therefore, we apply a mixed-method approach to study REST APIs and REST antipatterns with the objectives to recommend corrections or, when possible, actually correct the REST antipatterns. Qualitatively, via case studies, we analyse the evolution of 11 REST APIs, including Facebook, Twitter, and YouTube, over six years. We detect occurrences of eight REST antipatterns in the years 2014, 2017, and 2020 in 17 versions of 11 REST APIs. Thus, we show that (1) REST APIs and antipatterns evolve over time and (2) developers seem to remove antipatterns. Qualitatively via a discourse analysis, we analyse developers' forums and report that developers are concerned with the occurrences of REST antipatterns and discuss corrections to these antipatterns. Following these qualitative studies, using an engineering-research approach, we propose the following novel and unique contributions: (1) we describe and compare the corrections of eight REST antipatterns from the academic literature and from developers' forums; (2) we devise and describe algorithms to recommend corrections to some of these antipatterns; (3) we present algorithms and a tool to correct some of these antipatterns by intercepting and modifying responses from REST APIs; and, (4) we validate the recommendations and the corrections manually and via a survey answered by 24 REST developers. Thus, we propose to REST API developers and researchers the first, grounded approach to correct REST antipatterns.
引用
收藏
页码:4319 / 4338
页数:20
相关论文
共 50 条
  • [1] An Efficient Method for Automatic Antipatterns Detection of REST Web Services
    Mohammadnia, Sobhan
    Esmaeilyfard, Rasool
    Akbari, Reza
    [J]. JOURNAL OF WEB ENGINEERING, 2021, 20 (06): : 1761 - 1780
  • [2] Leadership styles in SMEs: a mixed-method approach
    Franco, Mario
    Matos, Pedro Goncalo
    [J]. INTERNATIONAL ENTREPRENEURSHIP AND MANAGEMENT JOURNAL, 2015, 11 (02) : 425 - 451
  • [3] Understanding "Zoom fatigue": A mixed-method approach
    Shoshan, Hadar Nesher
    Wehrt, Wilken
    [J]. APPLIED PSYCHOLOGY-AN INTERNATIONAL REVIEW-PSYCHOLOGIE APPLIQUEE-REVUE INTERNATIONALE, 2022, 71 (03): : 827 - 852
  • [4] Leadership styles in SMEs: a mixed-method approach
    Mário Franco
    Pedro Gonçalo Matos
    [J]. International Entrepreneurship and Management Journal, 2015, 11 : 425 - 451
  • [5] Detection of REST Patterns and Antipatterns: A Heuristics-Based Approach
    Palma, Francis
    Dubois, Johann
    Moha, Naouel
    Gueheneuc, Yann-Gael
    [J]. SERVICE-ORIENTED COMPUTING, ICSOC 2014, 2014, 8831 : 230 - 244
  • [6] Mixed-method approach to veteran satisfaction with pain education
    Watson, Erin C.
    Cosio, David
    Lin, Erica H.
    [J]. JOURNAL OF REHABILITATION RESEARCH AND DEVELOPMENT, 2014, 51 (03): : 503 - 514
  • [7] Conceptualizing masstige buying behavior: A mixed-method approach
    Purohit, Sonal
    Radia, Karan Nilesh
    [J]. JOURNAL OF BUSINESS RESEARCH, 2022, 142 : 886 - 898
  • [8] Evaluating the Senior Companion Program: A Mixed-Method Approach
    Butler, Sandra S.
    [J]. JOURNAL OF GERONTOLOGICAL SOCIAL WORK, 2006, 47 (1-2): : 45 - 70
  • [9] Understanding Place Through Use of Mixed-Method Approach
    Deutsch, Kathleen
    Goulias, Konstadinos G.
    [J]. TRANSPORTATION RESEARCH RECORD, 2012, (2323) : 1 - 9
  • [10] Psychological comfort in service relationships: A mixed-method approach
    Radia, Karan Nilesh
    Purohit, Sonal
    Desai, Shachi
    Nenavani, Jitendra
    [J]. JOURNAL OF RETAILING AND CONSUMER SERVICES, 2022, 64