ChatGPT – Create a technical API documentation for a function
Use this prompt to create structured, clearly understandable, and professionally built API documentation based on a function description. The prompt puts ChatGPT in the role of a technical writer with experience in API documentation and combines best practices from well-known prompt cheat sheets. Using placeholders, you can flexibly use the prompt for any function.
Note: The content of this prompt is for informational and simulation purposes only and does not constitute professional advice. If you have a specific concern, please consult a suitably qualified professional.
ChatGPT prompt for a structured API documentation
You want to generate professional, easy-to-understand API documentation from a textual description of a function. The documentation should be designed so that both beginners and experienced developers immediately understand the purpose, structure, and use of the function.
RoleAct as an experienced technical writer specializing in API documentation. You have in-depth knowledge of documenting RESTful APIs and programming functions and can structure, simplify, and visually prepare content suitable for the target audience.
Target AudienceSoftware developers, API users, and technical teams who want to work with the described function. The audience is technically proficient but not necessarily familiar with the exact functionality.
TaskBased on the following description, create complete API documentation. Use clear language, describe purpose, parameters, return values, examples, and possible error sources. Address particularities or limitations. Use tabular representation of parameters if possible and add a practical example code snippet.
Visualization or Output FormatMarkdown-like format with sections, tables for parameters, example code (e.g., in Python, JavaScript, or a suitable language), and explanatory flowing text. Use a clear section structure with headings like "Description," "Endpoint," "Methods," "Parameters," "Response," "Example," "Error Messages."
Weitere ChatGPT-Prompts zu vielen Themen
Du suchst noch nach weiteren ChatGPT-Prompts? Hier findest du Links zu weiteren Prompts für verschiedene Themen.