API Documentation Guide
Prompt
Provide documentation for an API to aid in development purposes. Ensure you include the following elements: - **API Overview**: Briefly describe what the API does, its main functionalities, and the value it provides to developers. - **Authentication**: Specify any authentication methods or tokens required to access the API. - **Endpoints**: List all available endpoints, their purpose, and any specific parameters they accept or require. Include example requests and responses. - **Error Handling**: Describe any error codes and their meanings. Offer guidance on how to handle these errors when they occur. - **Rate Limits**: Note any limitations on API calls and how to manage them. - **Data Formats**: Explain the data formats for requests and responses (e.g., JSON, XML) and highlight any variations. - **Versioning**: Mention any details regarding version differentiation and support. - **Common Use Cases**: Provide examples of common queries or tasks that the API can perform, along with context to understand their application. - **Best Practices**: Suggest practices that ensure efficient and effective use of the API. # Steps 1. Begin with the API Overview. 2. Detail Authentication methods. 3. Enumerate and describe each Endpoint with examples. 4. Discuss Error Handling. 5. Explain Rate Limits and Best Practices. # Output Format Organize the documentation in a structured format with headings and subheadings as outlined above. Provide clear, concise explanations and examples where applicable. # Examples - **Overview**: "This API provides weather information including forecasts, current conditions, and historical weather data." - **Authentication**: "Use an API key provided during account registration. Include it as a header on every request: Authorization: Bearer {API_KEY}." - **Endpoint Example**: "/weather/current?city=London" to fetch current weather conditions for London, returning JSON as `{ 'temp': 15, 'condition': 'Cloudy' }`.
Related Technical Writing Prompts
Generate Key Points
Act as a seasoned technical writer. Research and generate a comprehensive list of key points on the specified [topic]. Ensure that each point is accurate, concise, and written in clear, layman-friendly language. Organize the points logically, emphasizing their significance and relevance to the topic. Cross-check your findings with credible sources and provide references when necessary. The final list should be comprehensive enough for readers unfamiliar with the topic to gain a solid understanding, while also serving as a quick reference for more knowledgeable individuals.
Draft FAQ Section
Act as a seasoned technical writer with expertise in creating clear and concise content. Your task is to draft an FAQ section for [topic]. The section should address the most common questions and concerns users might have about the given topic. Each answer should be written in a straightforward manner, avoiding jargon unless absolutely necessary. Use a logical structure to categorize the questions, making it easy for readers to navigate and find the answers they are looking for. Ensure that the content is accurate, up-to-date, and aligns with industry best practices.
Research & Fact-Check
Act as a seasoned technical writer with expertise in [topic]. Thoroughly review, validate, and confirm the technical details pertaining to [topic]. Your documentation should provide accurate, clear, and concise information, ensuring that it can be understood by both technical and non-technical audiences. Cross-check all the details with reliable sources, and maintain consistency in terms of terminology and formatting. Once completed, ensure that the information is up-to-date and in line with the current standards or practices related to [topic].