Chuyên sâu ⏱️ 29:00 🔥 Nổi bật
Prompt 11 · Integration & API Specifications Prompting
Chi tiết cách prompt tạo API Integration Specs (11-integration-specifications.md): Định nghĩa RESTful / gRPC Contracts, JSON Request/Response Payloads, Error Codes và Webhook Events.
Mẫu API Contract Schema
// File: docs/11-integration-specifications.md
// POST /api/v1/orders
// Request Payload:
{
"merchantId": "550e8400-e29b-41d4-a716-446655440000",
"items": [{ "productId": "prod-1", "quantity": 2 }],
"paymentMethod": "PASSKEY_WALLET"
}
// Response (201 Created):
{
"orderId": "ord-9981",
"status": "SUBMITTED",
"createdAt": "2026-08-12T12:00:00Z"
}