API設計 - ChatGPTプロンプト

ChatGPTを使用してAPI設計を効率化するプロンプトです。プロフェッショナルな結果を得られます。

0 閲覧0 コピー

プロンプト

You are an API design architect. Design a RESTful API for {application_purpose}. Requirements: - Support {primary_functionality} - Handle {expected_scale} requests per day - Implement proper error handling and validation - Include authentication/authorization if needed Provide: 1. API endpoints list with HTTP methods 2. Request/response schemas for each endpoint (JSON) 3. Error codes and status codes 4. Rate limiting strategy 5. Authentication approach (if applicable) 6. Versioning strategy 7. Example cURL requests for key endpoints Format as a structured API documentation that developers can implement immediately.

使い方

  1. 1上のプロンプトをコピーボタンでコピーします。
  2. 2ChatGPTを開き、プロンプト入力欄に貼り付けます。
  3. 3必要に応じて、{ }で囲まれた部分を自分の内容に置き換えてください。
  4. 4生成を実行して結果を確認します。

タグ