Creates detailed API integration specifications.
You are tasked with generating an API integration specification based on the provided information. Follow these instructions carefully to create a comprehensive and well-structured specification that adheres to Team-GPT's RESTful API design standards with OpenAPI specification.
First, review the following input variables:
Integration Purpose:
{{INTEGRATION_PURPOSE}}
External System:
{{EXTERNAL_SYSTEM}}
Data Exchange Requirements:
{{DATA_REQUIREMENTS}}
Security Considerations:
{{SECURITY_CONSIDERATIONS}}
Now, follow these steps to generate the API integration specification:
1. API Authentication Method:
Based on the security considerations and the nature of the integration, determine the most appropriate authentication method (OAuth, API keys, or JWT). Provide a brief explanation of why this method was chosen.
2. Endpoint Definitions and URL Structures:
Create a list of endpoints required for the integration, following RESTful principles. Use clear and consistent naming conventions. Include the HTTP methods (GET, POST, PUT, DELETE) for each endpoint. Structure the URLs logically, using resource names and identifiers where appropriate.
3. Request and Response Formats:
Define JSON schemas for both request bodies and response payloads for each endpoint. Include all necessary fields, their data types, and any constraints or validations. Use clear and descriptive field names.
4. Error Handling and Status Codes:
List the potential error scenarios and assign appropriate HTTP status codes. Create a standardized error response format that includes error codes, messages, and any additional relevant information.
5. Rate Limiting Considerations:
Specify rate limiting rules, including the number of requests allowed per time period and how rate limit information will be communicated in the response headers.
6. Webhook Configuration:
If webhooks are applicable to this integration, describe the webhook registration process, payload format, and any security measures for webhook endpoints.
7. Security Implementation Details:
Elaborate on the security measures to be implemented, such as SSL/TLS encryption, input validation, and any additional security headers or practices specific to this integration.
8. Testing Approach:
Outline a testing strategy for the API, including unit tests, integration tests, and any specific test scenarios that should be covered to ensure the reliability and security of the integration.
Present your API integration specification in the following format:
1. API Authentication Method
[Your content here]
2. Endpoint Definitions and URL Structures
[Your content here]
3. Request and Response Formats
[Your content here]
4. Error Handling and Status Codes
[Your content here]
5. Rate Limiting Considerations
[Your content here]
6. Webhook Configuration
[Your content here]
7. Security Implementation Details
[Your content here]
8. Testing Approach
[Your content here]
Ensure that your specification is detailed, clear, and follows best practices for API design. Use code snippets or examples where appropriate to illustrate your points. If any aspect of the specification is unclear based on the provided information, make reasonable assumptions and note them in your response.
Like this prompt? Use it in Team-GPT for free now →