Challenges of API Documentation from a Provider Perspective and Best Practices for Examples in Public Web API Documentation

被引:0
作者
Bondel, Gloria [1 ]
Cerit, Arif [1 ]
Matthes, Florian [1 ]
机构
[1] Tech Univ Munich, Fac Informat, Boltzmannstr 3, Garching, Germany
来源
ICEIS: PROCEEDINGS OF THE 24TH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS - VOL 2 | 2022年
关键词
API Documentation; Web APIs; Challenges; Best Practices;
D O I
10.5220/0011089700003179
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Developers frequently have to learn new Web APIs provided by other teams or organizations. Documentation, especially code examples, supports learning and influences the consumers' perception of an API. Nevertheless, documentation repeatedly fails to address consumers' information needs. Therefore, we identify four major challenges of creating and maintaining public Web API documentation from a provider perspective which are unknown customer needs, the difficulty of balancing the coverage of varying information needs and keeping documentation concise, the high effort of creating and maintaining documentation, and missing internal guidance and governance for creating API documentation. In addition, we derive 46 best practices candidates for code examples as part of Web API documentation from literature and 13 expert interviews. Moreover, we evaluate a subset of eight of these candidates in the context of the Web API documentation for a public GraphQL API in a case study with 12 participants. As a result, we validate the analyzed eight best practices candidates to be best practices for public Web API documentation.
引用
收藏
页码:268 / 279
页数:12
相关论文
共 34 条
[1]  
[Anonymous], 2013, CASE STUDY RES DESIG
[2]  
Brooke J., 1996, Usability evaluation in industry, P189
[3]   Visualizing API Usage Examples at Scale [J].
Glassman, Elena L. ;
Zhang, Tianyi ;
Hartmann, Bjoern ;
Kim, Miryung .
PROCEEDINGS OF THE 2018 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS (CHI 2018), 2018,
[4]   API documentation with executable examples [J].
Hoffman, D ;
Strooper, P .
JOURNAL OF SYSTEMS AND SOFTWARE, 2003, 66 (02) :143-156
[5]  
Hoffman D, 2000, TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS - TOOLS 34, PROCEEDINGS, P239
[6]   Inappropriate Usage Examples in Web API Documentations [J].
Hosono, Masaki ;
Washizaki, Hironori ;
Honda, Kiyoshi ;
Nagumo, Hiromasa ;
Sonoda, Hisanobu ;
Fukazawa, Yoshiaki ;
Munakata, Kazuki ;
Nakagawa, Takao ;
Nemoto, Yusuke ;
Tokumoto, Susumu ;
Monpratarnchai, Supasit .
2019 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2019), 2019, :343-347
[7]  
Inzunza S, 2018, ADV INTELL SYST COMP, V746, P229, DOI 10.1007/978-3-319-77712-2_22
[8]  
ISO/IEC/IEEE 29119-1, 2013, 291191 ISOIECIEEE
[9]  
Jeong SY, 2009, LECT NOTES COMPUT SC, V5435, P86
[10]  
Jiang J, 2007, INT C PROGRAM COMPRE, P259