API Documentation Vocabulary
5 exercises — Practice vocabulary for writing API documentation: reference docs, quickstart guides, concept guides, tutorials, and changelogs.
0 / 5 completed
1 / 5
A technical writer says: "The reference documentation covers all endpoints." A developer asks what distinguishes reference documentation from other doc types. Which explanation is most accurate?
Reference documentation is the "dictionary" of your API — comprehensive, precise, and structured for lookup rather than learning. It is the most commonly visited documentation type by experienced developers integrating your API.
The Diátaxis framework (by Daniele Procida) distinguishes four documentation types: Reference (information-oriented, comprehensive, dry), Tutorial (learning-oriented, step-by-step, narrative), How-to Guide (problem-oriented, task-focused), and Explanation (understanding-oriented, conceptual). Reference docs are the most technically demanding to maintain because they must match the implementation exactly — a single incorrect field name or missing parameter makes the reference unreliable. Best practice: auto-generate reference docs from the API definition (OpenAPI/Swagger for REST, protobuf for gRPC, GraphQL schema for GraphQL) so they stay in sync with code changes automatically.
Key vocabulary:
• reference documentation — comprehensive, structured information about every API element; designed for lookup by experienced users
• OpenAPI (Swagger) — a specification format for documenting REST APIs that enables auto-generated reference docs
• Diátaxis — a documentation framework distinguishing Reference, Tutorial, How-to, and Explanation as four distinct documentation needs
The Diátaxis framework (by Daniele Procida) distinguishes four documentation types: Reference (information-oriented, comprehensive, dry), Tutorial (learning-oriented, step-by-step, narrative), How-to Guide (problem-oriented, task-focused), and Explanation (understanding-oriented, conceptual). Reference docs are the most technically demanding to maintain because they must match the implementation exactly — a single incorrect field name or missing parameter makes the reference unreliable. Best practice: auto-generate reference docs from the API definition (OpenAPI/Swagger for REST, protobuf for gRPC, GraphQL schema for GraphQL) so they stay in sync with code changes automatically.
Key vocabulary:
• reference documentation — comprehensive, structured information about every API element; designed for lookup by experienced users
• OpenAPI (Swagger) — a specification format for documenting REST APIs that enables auto-generated reference docs
• Diátaxis — a documentation framework distinguishing Reference, Tutorial, How-to, and Explanation as four distinct documentation needs