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 条
  • [41] Judicious: API Documentation for Novices
    Chiodini, Luca
    Piatti, Simone
    Hauswirth, Matthias
    PROCEEDINGS OF THE 2024 ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON SPLASH-E 2024, 2024, : 89 - 97
  • [42] Requirements of API Documentation: A Case Study into Computer Vision Services
    Cummaudo, Alex
    Vasa, Rajesh
    Grundy, John
    Abdelrazek, Mohamed
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (06) : 2010 - 2027
  • [43] REST API Design Patterns for SDN Northbound API
    Zhou, Wei
    Li, Li
    Luo, Min
    Chou, Wu
    2014 28TH INTERNATIONAL CONFERENCE ON ADVANCED INFORMATION NETWORKING AND APPLICATIONS WORKSHOPS (WAINA), 2014, : 358 - 365
  • [44] Cross Platform API Mappings based on API Documentation Graphs
    Shao, Yanjie
    Luo, Tianyue
    Ling, Xiang
    Wang, Limin
    Zheng, Senwen
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2022, : 926 - 935
  • [45] UNITED-NATIONS DOCUMENTATION - GUIDELINES TO A STUDY ON USAGE
    ELAYOUTY, Y
    INTERNATIONAL LIBRARY REVIEW, 1974, 6 (02): : 111 - 120
  • [46] Linked REST APIs: A Middleware for Semantic REST API Integration
    Serrano, Diego
    Stroulia, Eleni
    Lau, Diana
    Ng, Tinny
    2017 IEEE 24TH INTERNATIONAL CONFERENCE ON WEB SERVICES (ICWS 2017), 2017, : 138 - 145
  • [47] What should developers be aware of? An empirical study on the directives of API documentation
    Monperrus, Martin
    Eichberg, Michael
    Tekes, Elif
    Mezini, Mira
    EMPIRICAL SOFTWARE ENGINEERING, 2012, 17 (06) : 703 - 737
  • [48] Patterns of Knowledge in API Reference Documentation
    Maalej, Walid
    Robillard, Martin P.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (09) : 1264 - 1282
  • [49] Detecting Inefficient API Usage
    Kawrykow, David
    Robillard, Martin P.
    2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, COMPANION VOLUME, 2009, : 183 - 186
  • [50] What should developers be aware of? An empirical study on the directives of API documentation
    Martin Monperrus
    Michael Eichberg
    Elif Tekes
    Mira Mezini
    Empirical Software Engineering, 2012, 17 : 703 - 737