Skip to main content

Workflows & Methodologies

Development and documentation workflows for API projects. This section covers methodologies, testing approaches, and lifecycle management practices that guide how API documentation teams plan, create, test, and maintain their work.

Flowchart showing the relationship between workflow phases analysis and planning, design, content development, review and edit, publish, maintain

Agile

Definition: methodology with a collection of project management frameworks that break projects down into smaller phases and rely on iterative cycles

Purpose: allows teams to adapt to changes and regularly refine their work through flexibility rather than linear, rigid planning

Example: key values -

Flowchart showing Agile key values of people over processes, working solutions over details docs, customer collaboration over rigid contracts, and adapting to change over following a strict plan

Related Terms: CI/CD pipeline, docs-as-code, docs-as-ecosystem, docs-as-tests, Document Development Life Cycle, project management methodology, Scrum, Waterfall

Sources:


API documentation testing

Definition: the practice of validating that APIs function correctly, return expected responses, handle errors appropriately, and meet performance requirements

Purpose: ensures API reliability and accuracy before production deployment; in API documentation contexts, validates that documented endpoints, parameters, and code examples work as written; catches breaking changes that would make documentation inaccurate or misleading to developers

Why this belongs in Workflows & Methodologies: describes a testing practice and validation workflow that focuses on how teams verify APIs as part of documentation maintenance and emphasizes the practice of testing rather than a specific tool; Core Concepts covers what APIs are and API testing is about what teams do with APIs, not a fundamental API characteristic

API docs testing vs QA testing

Both testing approaches are necessary and complementary - QA ensures the product works correctly, while documentation testing ensures that user content is accurate:

AspectQA TestingDocumentation Testing
What it TestsAPIs meet engineering specifications and function correctlyDocumented workflows, code examples, and instructions work as written
Source of TruthEngineering specifications and technical requirementsUser-facing documentation and tutorials
PurposeValidates product works to specValidates user-facing instructions remain accurate
Can catch documentation drift?No - validates against different source of truthYes - specifically designed to catch this
Example ScenarioDevelopers add a required parameter, tests pass → API works correctlyDevelopers add a required parameter, tests fail → documented examples no longer work

API docs testing types

Testing TypeWhat It ValidatesScopeExample
Contract TestingAPI conforms to agreed contracts between consumer and providerInterface contracts, message formats, protocolsConsumer defines expected response format, provider verifies implementation matches
Snippet TestingCode examples execute successfullyIndividual code samples in documentationPython snippet makes API call and returns expected data structure
Workflow TestingMulti-step API sequences accomplish tasksComplete user journeys across endpointsAuthentication → create resource → retrieve resource → delete resource all work in sequence

Example: API docs testing workflow -

Flowchart showing an API docs testing workflow including test implementation, running tests, endpoint changes, tests failing, tests alerting team to change docs

Related Terms: AI agent, API, API sandbox, BDD, Bruno, contract testing, Cypress, Doc Detective, docs-as-tests, HTTP status codes, Playwright, REST API, self-healing system, UX, workflow testing

Sources:


BDD

Definition: acronym for behavior-driven development; software development methodology that extends TDD - test-driven development - by writing tests in natural language that describes how software should behave from a user's perspective

Purpose: bridges communication between technical and non-technical stakeholders by expressing requirements and tests in plain language; enables collaboration between developers, testers, and business analysts through shared understanding of expected behavior; in API documentation contexts, allows teams to validate API behavior using human-readable scenarios that serve as both tests and documentation

Example: a team uses BDD to document and test their payment API by writing scenarios that become executable tests through frameworks like Cucumber while simultaneously serving as readable documentation of API behavior -

"Given a valid credit card, 
When a charge request is submitted,
Then the transaction succeeds and returns a confirmation ID"

Related Terms: API documentation testing, Cucumber, Given-When-Then, docs-as-tests, workflow testing

Sources:


contract testing

Definition: verifies APIs and services conform to agreed-upon contracts between consumers/client and providers/server by validating message formats, protocols, and behaviors

Purpose: verifies that the API does what the docs say it does; catches integration issues early without requiring full end-to-end testing environments; ensures API changes don't break existing consumers; specifically ensures that the API definition, implementation, and consumer's code all remain accurate and trustworthy

contract testing vs linters

contract testing validates runtime behavior against executable specifications by testing actual API responses, while linters like Vale perform static analysis of API description documents to check formatting, style, and specification compliance without making requests

Example: consumer team writes tests defining expected API responses, provider team verifies their API implementation satisfies these expectations, catching breaking changes before deployment

Related Terms: API documentation testing, Bruno, docs-as-tests, Dredd, Microcks, Pact, Spectral, snippet testing, Vale, workflow testing

Sources:


Critical Chain Project Management

Definition: also known as CCPM; takes the critical path method one step further - focuses on resources needed to complete tasks rather than solely on task dependencies

Purpose: ensures project schedules account for resource constraints, not just task dependencies

Related Terms: Agile, Critical Path Method, project management methodology

Sources:


Critical Path Method

Definition: also known as CPM; project management technique identifying task sequences where some tasks can't start until previous ones finish, often visualized with Gantt charts

Purpose: helps teams understand task dependencies and identify bottlenecks in project timelines

Example: the "critical path" in a software release might include the following steps, where delays in any step delay the entire release -

Flowchart showing Critical Path Method example steps: code freeze, QA testing, docs review, deployment

Related Terms: Agile, Critical Chain Project Management, project management methodology

Sources:


diagrams-as-code

Definition: documentation approach that represents diagrams as text-based code artifacts rather than binary image files; subset of the broader docs-as-code philosophy applied specifically to visual information in text form and/or content

Purpose: enables diagrams to live alongside code in repositories, reviewed and maintained through the same workflows as the documentation they support

Why this belongs in Workflows & Methodologies: describes a documentation methodology and workflow pattern rather than a specific tool; similar to how docs-as-code describes a tool-agnostic path, diagrams-as-code describes a capability implemented by tools like Mermaid, PlantUML, D2, and Python Diagrams - the methodology is distinct from any individual implementation

Example: instead of exporting a PNG from a GUI tool and committing the binary file, a team writes Mermaid or PlantUML markup that renders automatically in their docs platform - when the architecture changes, they update the text, not the image

Key Benefits:

BenefitDiagrams-as-CodeBinary Image Files
Version ControlText diffs show exactly what connection, label, or component changed; supports inline PR commentsVisual diff shows something changed but not what or why
CollaborationReviewers comment on specific code lines in PRsReviewers describe changes in prose comments
ConsistencyTooling handles layout and styling automaticallyManual adjustment required each update
MaintainabilitySearchable, refactorable, grep-able textBinary file requires opening a GUI tool to inspect or edit
AccessibilityText source readable by screen readers and LLMs nativelyRequires alt text added separately

Related Terms: accessibility, D2, diagram, docs-as-code, GUI, Ilograph, Large Language Model, Mermaid, PlantUML, pull request, Python Diagrams, UML, version control

Sources:


docs-as-code

Definition: methodology for developing and publishing documentation using the same tools, processes, and workflows as software development

Purpose: enables documentation teams to manage content in version control systems alongside code, leverage developer workflows like pull requests and code review, and automate publishing through CI/CD pipelines; treats documentation files as code artifacts that follow the same quality standards, testing processes, and deployment procedures as software

Why this belongs in Workflows & Methodologies: docs-as-code is fundamentally a methodology for organizing work, not a specific tool or analytical framework; it describes a strategic approach to documentation processes and operational workflows, how teams organize daily documentation work within development cycles, rather than an evaluation framework like cognitive dimensions, or a specific software platform, like Git or Swagger

Example docs-as-code workflow:

Flowchart showing docs-as-code workflow: store docs in Git, GitHub tracks changes, review changes, test changes, deploy-merge changes
BenefitsConsiderations
Transparency — all discussions, decisions, and changes visible in one placeLearning Curve - requires all contributors to learn the version control system and toolchain
Collaboration — developers draft, writers refine, everyone contributesFormality - may limit spontaneous collaboration if team relies solely on formal issue tracking
Traceability — complete history of what changed and why, accessible years laterProcess Dependency - effectiveness depends on comprehensive testing and review processes
Efficiency — eliminates context-switching, reduces time searching email or chatComm Standards - demands clear communication standards for asynchronous, distributed teams
Integration — documentation stays synchronized with code through the same review processStandardization Balance - success requires balancing standardization with space for informal discussion

Related Terms: Agile, CMS, diagrams-as-code, docs-as-ecosystem, Git, GitHub, main branch, MDX, pull request, self-healing system, version control

Sources:


docs-as-tests

Definition: documentation strategy that treats documentation as testable assertions to verify content accuracy against the current product state

Purpose: maintains documentation accuracy through automated testing that validates docs work as written by directly testing against product UIs, APIs, and CLIs; catches documentation and product issues before users encounter them while reducing manual maintenance effort in environments with frequent product updates; enables technical writers to identify breaking changes in products before release, like how developers use automated tests to catch code regressions

Why this belongs in Workflows & Methodologies: describes an operational workflow approach that focuses on processes and practices rather than specific tools or conceptual frameworks

Example docs-as-tests workflow:

Flowchart showing docs-as-tests workflow: writers maintain docs accuracy, implement tests, API changes, tests fail, tests alert writers, writers catch discrepancies

Related Terms: AI agent, API documentation testing, BDD, contract testing, Doc Detective, self-healing system, snippet testing, usability testing, workflow testing

Sources:


Document Development Life Cycle

Definition: also known as DDLC; process of writing and delivering content in the form of documentation such as PDFs, Word documents, online articles, or website content

Purpose: provides a structured approach to creating documentation with well-defined phases that ensure content meets user needs

Phases:

Flowchart showing DDLC phases: analysis and planning, designing, content development, proofreading and editing, publishing, implementation, approval, maintenance

Related Terms: Agile, API documentation testing, CI/CD pipeline, project management methodology, usability testing

Sources:


guerrilla usability testing

Definition: evaluation method that tests interface effectiveness by approaching participants in public spaces for quick feedback rather than recruiting in advance

Purpose: provides a quick, cost-effective way to gather feedback from target users without formal recruitment processes

Example: key characteristics and deliverables -

Flowchart showing guerilla usability testing key characteristics and deliverables: low maintenance, ad hoc settings, tests that don't require deep knowledge, less accurate than formal testing; test plan, recordings, summary report, presentation

Related Terms: accessibility, AI-assisted usability analysis, API documentation testing, contract testing, Document Development Life Cycle, DX, information architecture, snippet testing, usability testing, UX, workflow testing

Sources:


project management methodology

Definition: different approaches to organizing and executing projects, ranging from sequential to iterative frameworks

Purpose: provides structured ways to plan, execute, and complete projects based on team needs and project characteristics

common methodologies

MethodologyApproachFocusBest For
WaterfallSequential, linearPhase completionStable requirements, predictable projects
Critical Path MethodDependency-basedTask sequencesProjects with clear dependencies
Critical Chain Project ManagementResource-focusedResource availabilityResource-constrained projects
AgileIterative, flexibleAdaptationChanging requirements, feedback loops
ScrumSprint-basedTeam collaborationFast-paced development, quick iterations

Related Terms: Agile, Critical Chain Project Management, Critical Path Method, Document Development Life Cycle, Scrum, Waterfall

Sources:


Scrum

Definition: Agile framework where small teams led by a scrum master work in short two-week cycles called sprints with daily meetings

Purpose: enables rapid development and testing while removing obstacles to efficient work

Example: key characteristics -

Flowchart showing Scrum key characteristics: iterative approach, scrum master clears obstacles, two-week sprints, daily team meetings

Related Terms: Agile, project management methodology

Sources:


snippet testing

Definition: automated testing practice that validates code examples or "code snippets" in documentation execute successfully and produce expected results

Purpose: prevents documentation drift by ensuring code examples remain accurate as APIs evolve; catches breaking changes that would make documented examples fail

Example: documentation builds execute Python code examples against test API instances, failing the build if examples return errors or unexpected responses

Related Terms: API documentation testing, contract testing, docs-as-tests, usability testing, workflow testing

Source: Silva, Manny. Docs As Tests. First edition, Release 2, Boffin Education, May 2025.


usability testing

Definition: practice of testing how easy a design is to use with representative users, typically by observing them as they attempt to complete tasks

Purpose: identifies problems before customers encounter them and provides user perspective before product release

Benefits:

  • Finds problems before customers do
  • Provides customer perspective pre-release
  • Informs design improvements

Limitations:

  • Not designed to generalize beyond test scope
  • Can't prove that a feature works universally
  • Not statistically significant but still useful
  • Participant recruitment is challenging

Related Terms: accessibility, AI-assisted usability analysis, API documentation testing, docs-as-ecosystem, Document Development Life Cycle, DX, guerrilla usability testing, information architecture, UX, workflow testing

Source: UW API Docs: Module 4, Lesson 3, "Review usability testing for API"


Waterfall

Definition: traditional, sequential, linear project management methodology where each phase must complete before the next begins

Purpose: provides idealistic approach for projects with well-defined requirements and minimal expected changes

Characteristics:

  • Sequential, non-iterative phases
  • First introduced by Winston W. Royce in 1970
  • Each phase gates the next
  • Limited flexibility for changes

Related Terms: Agile, project management methodology, Scrum

Sources:


workflow testing

Definition: validates the sequences of API calls that accomplish real tasks - multi-step interactions and user journeys across multiple endpoints and operations

Purpose: ensures complete business processes work correctly beyond individual endpoint testing; verifies APIs support real-world use cases and user workflows; specifically validates that a series of API calls work together as defined, confirming that users can successfully complete tasks by following documentation procedures

Example: e-commerce workflow test validates entire checkout process by testing user authentication, cart management, payment processing, and order confirmation endpoints in sequence

Related Terms: API documentation testing, BDD, contract testing, docs-as-tests, guerilla usability testing, Karate, snippet testing, usability testing

Sources: