A Study of the Effectiveness of Usage Examples in REST API Documentation

被引:0
|
作者
Sohan, S. M. [1 ]
Maurer, Frank [1 ]
Anslow, Craig [2 ]
Robillard, Martin P. [3 ]
机构
[1] Univ Calgary, Dept Comp Sci, Calgary, AB, Canada
[2] Victoria Univ Wellington, Sch Engn & Comp Sci, Wellington, New Zealand
[3] McGill Univ, Sch Comp Sci, Montreal, PQ, Canada
关键词
API; REST; Documentation; Usage Examples; Empirical Study; Controlled Study; Productivity; USABILITY;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Generating and maintaining REST API documentation with usage examples can be a time consuming and expensive process for evolving APIs. Most REST API documentation tools focus on automating the documentation of the API objects, but require manual effort for capturing usage examples. Consequently, REST API developers need to know the cost vs. benefit of providing usage examples in the documentation to prioritize the documentation efforts. To this end, we have performed a controlled study with 26 experienced software engineers to understand problems that REST API client developers face while using an API without usage examples. We found that REST API client developers face productivity problems with using correct data types, data formats, required HTTP headers and request body when documentation lacks usage examples. By following the REST API documentation suggestions from this paper, REST API developers can reduce the errors, improve success rate and satisfaction of API client developers.
引用
收藏
页码:53 / 61
页数:9
相关论文
共 50 条
  • [31] A Systematic Mapping Study on API Documentation Generation Approaches
    Nybom, Kristian
    Ashraf, Adnan
    Porres, Ivan
    44TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2018), 2018, : 462 - 469
  • [32] A Qualitative Study of REST API Design and Specification Practices
    Coblenz, Michael
    Guo, Wentao
    Voozhian, Kamatchi
    Foster, Jeffrey S.
    2023 IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING, VL/HCC, 2023, : 148 - 156
  • [33] Task-Oriented API Usage Examples Prompting Powered By Programming Task Knowledge Graph
    Sun, Jiamou
    Xing, Zhenchang
    Peng, Xin
    Xu, Xiwei
    Zhu, Liming
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2021), 2021, : 448 - 459
  • [34] Recommending reference API documentation
    Martin P. Robillard
    Yam B. Chhetri
    Empirical Software Engineering, 2015, 20 : 1558 - 1586
  • [35] A Dataset For API Usage
    Sawant, Anand Ashok
    Bacchelli, Alberto
    12TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2015), 2015, : 506 - 509
  • [36] How API Documentation Fails
    Uddin, Gias
    Robillard, Martin P.
    IEEE SOFTWARE, 2015, 32 (04) : 68 - 75
  • [37] Recommending reference API documentation
    Robillard, Martin P.
    Chhetri, Yam B.
    EMPIRICAL SOFTWARE ENGINEERING, 2015, 20 (06) : 1558 - 1586
  • [38] Levels of maturity in API documentation
    Kozlowski, P
    Dollar, B
    NAVIGATING THE FUTURE OF TECHNICAL COMMUNICATION, 2004, : 246 - 250
  • [39] An Observational Study on Compatibility-Related API Usage
    Xu, Chen
    Xiong, Yan
    Huang, Wenchao
    Meng, Zhaoyi
    5TH INTERNATIONAL CONFERENCE ON BIG DATA COMPUTING AND COMMUNICATIONS (BIGCOM 2019), 2019, : 64 - 68
  • [40] Detecting API documentation errors
    Zhong, Hao
    Su, Zhendong
    ACM SIGPLAN NOTICES, 2013, 48 (10) : 803 - 815