I recommend to have in API documentation: • API overview • Getting started • Authentication and authorization • API glossary • API usage examples • API versioning and changelog
and meeting notes to make the prompts more targeted. Pre-process the input to extract relevant sections such as paths, schemas, scopes. Generate a "Getting Started" section for API documentation. Context: - Paths: /accounts, /transactions, /auth - Authentication: OAuth2 with API Keys - Schemas: Account, Transaction - Scopes: read:accounts, write:transactions Instructions: - Include these details in the guide. - Add placeholders like [Insert <detail>] for missing information. - Use clear, actionable steps with examples. - Start with "# Getting Started".
or personal/team preferences, put them into prompt. For example: how would you like to structure certain sections, which style to use for headings, etc. Generate an "Error Handling" section for the API documentation. Formatting Rules: - Use markdown headers (##, ###) for organization. - Include tables for error codes: | Error Code | Description | Resolution | |------------|-----------------------|---------------- --| - Write lists in bullet points for clarity. - Avoid including any stylistic notes in the output. Instructions: - Begin with "# Error Handling". - If any details are missing, use placeholders like [Insert <error detail>].
fabricates content. Instead, guide it to use placeholders explicitly When information is missing, use placeholders: [Insert <detail> here] Generate a "Glossary" section for API documentation. Context: - Terms: OAuth2, API Key, Access Token Instructions: - Use placeholders for undefined terms: [Insert <term definition>]. - List terms alphabetically with definitions: **Term**: Definition goes here. - Start with "# Glossary".
<instructions> mentioning where the model got this information from (part of a specification, meeting notes, answers) or how to check it. Generate an "Authentication" section for the API. Context: - Security Schemes: OAuth2, Basic Auth - Scopes: read:accounts, write:transactions Instructions: - Include TODO comments for unclear details: `<!-- TODO: Verify the flow with the authentication team -->`. - Mention where the information originates (e.g., meeting notes, spec details). - Use markdown and start with "# Authentication".
The Good Docs project. The template and the corresponding guide already contains prompt-like information on what certain documentation type should contain and how to fill the sections. Generate a "Quick Start Guide" using The Good Docs Project template. Template Reference: 1. Prerequisites: - Credentials: [Insert details] - Tools: Postman, cURL 2. Steps: - Authenticate using OAuth2. - Make your first API call to `/accounts`. Instructions: - Follow the provided structure strictly. - Add placeholders for missing details like [Insert <tool detail>]. - Format in markdown and ensure alignment with the example.
to suit developer personas or specific roles • Implement OpenAPI Workflows to encapsulate tutorials as programmable, chained calls, streamlining onboarding and advanced use cases. • Use advanced AI techniques like reasoning chaining and few-shot prompting to provide deeper contextual insights in examples and explanations. • Incorporate community-generated templates more. • Create feedback loops that refine generated documentation based on user interactions and error reports. Watch Frank Kilcommins: The API Workflows Specification – Unlocking API Value for Humans and Machines