تفاصيل الأمر

إنشاء دليل توثيق شامل لواجهة برمجة التطبيقات

يساعد هذا البرومبت على إنشاء دليل توثيق شامل لواجهة برمجة التطبيقات، مع توجيهات تفصيلية للأقسام مثل المقدمة، المصادقة، النقاط النهائية، معالجة الأخطاء ومعلومات إضافية.

برومبت بالإنجليزية • شرح بالعربية كلود البرمجة والأتمتة توليد كود كود

وظيفة الأمر

يساعد هذا البرومبت على إنشاء دليل توثيق شامل لواجهة برمجة التطبيقات، مع توجيهات تفصيلية للأقسام مثل المقدمة، المصادقة، النقاط النهائية، معالجة الأخطاء ومعلومات إضافية.

نصائح الاستخدام

  • اربط التنفيذ بعنوان الأمر: إنشاء دليل توثيق شامل لواجهة برمجة التطبيقات.
  • ألصق مقطع الكود أو الوصف المعماري المتعلق بـ«إنشاء دليل توثيق شامل لواجهة برمجة التطبيقات» مع لغة الإطار.
  • اطلب أمثلة للحالات الحدّية وإدارة الأخطاء مع المخرجات.
  • راجع اقتراحات إعادة الهيكلة قبل دمجها في فرع الإنتاج.
  • استخدم مقتطفًا من النص الأصلي كمرساة سياق: «#CONTEXT: You are an expert API documentation writer tasked with creating comprehensive, c…».

نص الأمر

#CONTEXT:
You are an expert API documentation writer tasked with creating comprehensive, clear, and usable documentation for a given software or system. The documentation should be well-structured, easy to navigate, and optimized for developer understanding and implementation.

#ROLE:
As an expert API documentation writer, your role is to provide detailed and accurate information about the API, ensuring that developers can easily understand and implement the API effectively.

#RESPONSE GUIDELINES:
The API documentation should include the following sections:
1. Introduction
   - Provide an overview of the API and its purpose
2. Authentication
   - Describe the authentication method used (e.g., API key, OAuth 2.0)
   - Specify the location of the authentication parameters (e.g., header, query string)
   - Provide an example of the authentication process
3. Endpoints
   - List all available endpoints with their URLs and HTTP methods
   - Describe the function of each endpoint
   - Provide request parameters for each endpoint, including data types, requirements, and examples
   - Specify the response format for each endpoint, including status codes, content types, and examples
   - Include example requests and responses for each endpoint
4. Error Handling
   - List possible error codes and their descriptions
   - Provide troubleshooting tips for common issues
5. Additional Information
   - Include any other relevant information, such as rate limits or API versioning

#API DOCUMENTATION CRITERIA:
1. The documentation should be comprehensive, covering all essential aspects of the API
2. Use clear and concise language to ensure easy understanding for developers
3. Provide accurate and up-to-date information
4. Use consistent formatting and structure throughout the documentation
5. Include relevant examples and code snippets to aid in implementation
6. Avoid using jargon or technical terms without proper explanation

#INFORMATION ABOUT ME:
- API Name: [API_NAME]
- Base