Skip to main content
QUICK REVIEW

[Paper Review] Zur Benutzbarkeit und Verwendung von API-Dokumentationen

Rolf Huesmann, Alexander Zeier|arXiv (Cornell University)|Jan 1, 2020
Information and Cyber SecurityComputer Science1 citations
TL;DR

This paper proposes a usability-focused API documentation system for cryptographic APIs, implementing nine key requirements from prior research in a prototype evaluated via a user study with 22 developers. The study found that 'fast API usage' was the most impactful requirement, subsuming five others, while classical reference and comment features saw low usage, suggesting limited immediate value without long-term validation.

ABSTRACT

A good documentation is essential for a good usability of (security) APIs, i.e. especially for the correct use of the APIs. Requirements for good documentation of APIs have been described in several papers, but there is no technical implementation (hereinafter referred to as a documentation system) that implements these requirements. The requirements can be divided into requirements for the documentation system and requirements for the documentation content. Out of 13 identified requirements for a documentation system itself, 9 were implemented in a prototype and evaluated in a user study with 22 test persons using a cryptographic API. It turned out that the implementation of the requirement 'Enable quick use of the API' depends on the one hand on the quality of the content entered, but on the other hand also includes 5 other requirements or their implementation. The two other implemented requirements ('classic reference' and 'question and answer function') were hardly or not at all used by the test persons. Their usefulness and relevance should be investigated in a long-term study.

Motivation & Objective

  • To address the critical gap in usable cryptographic API documentation that leads to security vulnerabilities.
  • To identify and implement key usability requirements for API documentation systems based on prior research.
  • To evaluate the effectiveness of these requirements in practice through a controlled user study with software developers.
  • To assess the real-world utility of specific documentation features like comments and classical references in API usage.

Proposed method

  • Conducted a literature review to identify 13 usability requirements for API documentation from prior studies on developer usability.
  • Selected and implemented nine of these requirements into a prototype documentation system for cryptographic APIs.
  • Designed a controlled user study with 22 participants to solve a cryptographic programming task using the eUCRITE and Tink APIs.
  • Collected data via screen recording, think-aloud protocols, and structured surveys to assess documentation usability.
  • Used standardized questionnaires (e.g., adapted from Acar et al.) to measure perceived usability, task completion, and error recovery.
  • Analyzed qualitative feedback and quantitative ratings (e.g., grades 1–6) to evaluate feature effectiveness and overall documentation quality.

Experimental results

Research questions

  • RQ1To what extent does implementing the 'fast API usage' requirement improve developer task completion and perceived usability?
  • RQ2How do different documentation features (e.g., code examples, comments, classical reference) impact developer engagement and task performance?
  • RQ3Which usability requirements for API documentation are most effective in reducing errors and improving understanding during cryptographic API usage?
  • RQ4How do developers perceive the usefulness of features like comment systems and classical references in real-world programming tasks?
  • RQ5What is the relationship between documentation quality and the correct implementation of cryptographic operations?

Key findings

  • The 'fast API usage' requirement was the most impactful, subsuming five other usability requirements, indicating its foundational role in effective documentation.
  • The 'tryout' or 'live code' feature significantly improved perceived usability and was central to task success, especially when combined with high-quality content.
  • Classical reference and comment features were rarely used, suggesting limited immediate value in short-term task contexts.
  • Participants rated the eUCRITE API documentation higher (mean grade 4.2/6) than the Tink documentation (mean grade 3.5/6), indicating better usability in the prototype.
  • Error messages were perceived as helpful only when they were meaningful and directly linked to the root cause, which improved debugging efficiency.
  • Participants reported that clear, well-structured code examples and conceptual explanations were the most valuable elements in reducing cognitive load and implementation errors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.