API Documentation
Documentation for developers who call an API: what each endpoint takes and returns, how to get a first response, and what each error means, checked against the API itself.
Where this work comes from. Projects: the KC1 prediction API from my MSc project, documented from requests and responses recorded against the trained model. The developer documentation set in DITA describes an invented product, as a demonstration.
Read These First
KC1 defect prediction: Reference
KC1 Prediction API Reference
A complete reference for a working API: base URL, version, authentication, every field, every error and code examples, with each response recorded from the API.
KC1 defect prediction: How-to
Get Your First Prediction from the KC1 API
From a fresh copy of the project to a first prediction in six steps, with the answer to expect after each one.
KC1 defect prediction: Troubleshooting
Troubleshoot the KC1 API
Each error the API returns and how to fix the request, including a fault that the recording found.
Project Documentation
API guide
The Library API: A GraphQL Guide
Queries, variables, cursor pagination, a mutation and two kinds of errors, with every example tested on each build.
API documentation set, fictional sandbox
The Brindlemark Sandbox API
Eight pages for a fictional embedded-banking GraphQL API: OAuth 2.0, payment accounts, SEPA transfers, idempotency and signed webhooks, every example recorded on each build.
KC1 defect prediction: Reference
README: KC1 Defect Prediction
Architecture, dataset, model selection, the prediction API, and what is deliberately kept out of Git.
KC1 defect prediction: How-to
Manual Docker Build Guide
Takes a first-time user from checking Docker to three running interfaces, then covers troubleshooting. Every command is followed by what it does.
KC1 defect prediction: Reference
Model Card: KC1 Defect Prediction
What the served classifier predicts, its training and test data, every candidate’s results, the threshold trade-off, the limits, and how to reproduce the run.
Every document for api documentation in the library
Working Demonstrations
Demonstration
Developer Documentation, in DITA
A concept, a deployment task, a troubleshooting topic and a configuration reference for an invented webhook relay, published by DITA Open Toolkit.
Tool
Developer Guide Template
The workbench’s developer guide: write against the style guide, and export Markdown, HTML or DITA.
Conventions Followed
| Convention | How it shows here |
|---|---|
| OpenAPI 3.1 | The API’s own machine-readable description, as it serves it at /openapi.json. |
| Recorded examples | Every request and response in the reference comes from the API, kept in one file a reader can check. |
Files to Download
- Lattice Relay Developer Documentation PDF, 15 pages, 116 KB
Every file for api documentation
Other Fields
Software and SaaSEnterprise ITCybersecurityAI and data scienceBanking and FinTechAerospaceIndustrial engineering