{"id":88117,"date":"2026-07-31T14:16:29","date_gmt":"2026-07-31T06:16:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/88117.html"},"modified":"2026-07-31T14:16:29","modified_gmt":"2026-07-31T06:16:29","slug":"%e7%94%a8trae%e8%a7%84%e5%88%99%e6%90%9e%e5%ae%9aapi%e6%96%87%e6%a1%a3%e7%94%9f%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/88117.html","title":{"rendered":"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"191\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260731061627-6a6c3dbb7cd4f.png\" width=\"311\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260731061627-6a6c3dbb9ac6a.png\" \/><\/p>\n<p>\u9002\u7528\u5e73\u53f0&#xff1a;Trae IDE | \u96be\u5ea6&#xff1a;\u96f6\u57fa\u7840 | \u9605\u8bfb\u65f6\u95f4&#xff1a;\u7ea67\u5206\u949f<\/p>\n<h4>\u524d\u8a00<\/h4>\n<p>\u5199 API \u6587\u6863\u5927\u6982\u662f\u540e\u7aef\u5f00\u53d1\u8005\u6700\u4e0d\u613f\u610f\u505a\u7684\u4e8b\u60c5\u4e4b\u4e00\u3002\u4ee3\u7801\u5199\u5b8c\u4e86&#xff0c;\u6587\u6863\u603b\u662f\u80fd\u62d6\u5c31\u62d6\u3002\u5982\u679c\u4f60\u7528 Trae IDE&#xff0c;\u5176\u5b9e\u53ea\u9700\u8981\u914d\u4e00\u6761 Rule&#xff08;\u89c4\u5219&#xff09;&#xff0c;\u5c31\u80fd\u8ba9 AI \u5728\u4f60\u5199\u5b8c\u4ee3\u7801\u540e\u81ea\u52a8\u751f\u6210\u6807\u51c6\u683c\u5f0f\u7684 API \u6587\u6863\u3002<\/p>\n<p>\u548c WorkBuddy\u3001Qoder \u7684 Skill \u4f53\u7cfb\u4e0d\u540c&#xff0c;Trae \u7684\u5b9a\u5236\u65b9\u5f0f\u662f\u00a0Rules&#xff08;\u89c4\u5219&#xff09;\u2014\u2014\u4f60\u901a\u8fc7 Markdown \u6587\u4ef6\u544a\u8bc9 AI \u5728\u4ec0\u4e48\u573a\u666f\u4e0b\u5e94\u8be5\u9075\u5faa\u4ec0\u4e48\u89c4\u8303\u3002\u867d\u7136\u4e0d\u53eb Skill&#xff0c;\u4f46\u672c\u8d28\u601d\u8def\u662f\u4e00\u6837\u7684&#xff1a;\u628a\u4f60\u7684\u7ecf\u9a8c\u6c89\u6dc0\u6210 AI \u80fd\u7406\u89e3\u7684\u6307\u4ee4\u3002<\/p>\n<h4>Trae Rules \u57fa\u7840<\/h4>\n<p>Trae \u7684\u89c4\u5219\u7cfb\u7edf\u5206\u4e24\u5c42&#xff1a;<\/p>\n<p>\u4e2a\u4eba\u89c4\u5219&#xff08;Global Rules&#xff09;&#xff1a;\u5168\u5c40\u751f\u6548&#xff0c;\u9002\u7528\u4e8e\u4f60\u6240\u6709\u9879\u76ee\u3002\u5728 Trae \u8bbe\u7f6e\u754c\u9762\u7684 &#034;Rules&#034; \u9762\u677f\u4e2d\u914d\u7f6e\u3002<\/p>\n<p>\u9879\u76ee\u89c4\u5219&#xff08;Project Rules&#xff09;&#xff1a;\u8ddf\u968f\u9879\u76ee&#xff0c;\u5b58\u653e\u5728\u00a0.trae\/rules\/\u00a0\u76ee\u5f55\u4e0b&#xff0c;\u53ef\u4ee5\u548c\u4ee3\u7801\u4e00\u8d77\u63d0\u4ea4\u5230 Git&#xff0c;\u5b9e\u73b0\u56e2\u961f\u5171\u4eab\u3002<\/p>\n<p>\u6bcf\u6761\u89c4\u5219\u90fd\u662f\u4e00\u4e2a\u00a0.md\u00a0\u6587\u4ef6&#xff0c;\u9876\u90e8\u6709 YAML frontmatter \u63a7\u5236\u89e6\u53d1\u6761\u4ef6\u3002<\/p>\n<h4>\u5f00\u59cb\u52a8\u624b<\/h4>\n<p>\u6211\u4eec\u8981\u505a\u7684\u662f&#xff1a;\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u6761\u89c4\u5219&#xff0c;\u8ba9 AI \u5728\u751f\u6210 API \u6587\u6863\u65f6\u9075\u5faa\u7edf\u4e00\u683c\u5f0f\u3002<\/p>\n<h5>\u7b2c\u4e00\u6b65&#xff1a;\u521b\u5efa\u89c4\u5219\u76ee\u5f55<\/h5>\n<p>\u5728\u4f60\u7684\u9879\u76ee\u6839\u76ee\u5f55\u4e0b&#xff1a;<\/p>\n<p>mkdir -p .trae\/rules <\/p>\n<h5>\u7b2c\u4e8c\u6b65&#xff1a;\u7f16\u5199\u89c4\u5219\u6587\u4ef6<\/h5>\n<p>\u521b\u5efa\u00a0.trae\/rules\/api-docs.md&#xff0c;\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>&#8212;<br \/>\ndescription: \u5f53\u7528\u6237\u8981\u6c42\u751f\u6210\u6216\u66f4\u65b0 API \u6587\u6863\u65f6&#xff0c;\u6309\u6b64\u89c4\u5219\u6267\u884c<br \/>\nalwaysApply: false<br \/>\nglobs:<br \/>\n  &#8211; &#034;**\/controllers\/**&#034;<br \/>\n  &#8211; &#034;**\/routes\/**&#034;<br \/>\n  &#8211; &#034;**\/api\/**&#034;<br \/>\n&#8212;<\/p>\n<p># API \u6587\u6863\u751f\u6210\u89c4\u8303<\/p>\n<p>## \u89e6\u53d1\u6761\u4ef6<\/p>\n<p>\u5f53\u7528\u6237\u63d0\u5230&#034;\u751f\u6210 API \u6587\u6863&#034;&#034;\u66f4\u65b0\u63a5\u53e3\u6587\u6863&#034;&#034;\u5199\u63a5\u53e3\u8bf4\u660e&#034;\u7b49\u610f\u56fe\u65f6&#xff0c;\u6267\u884c\u672c\u89c4\u5219\u3002<\/p>\n<p>## \u6587\u6863\u683c\u5f0f<\/p>\n<p>\u6bcf\u4e2a API \u7aef\u70b9\u6309\u4ee5\u4e0b\u6a21\u677f\u8f93\u51fa&#xff1a;<\/p>\n<h4>[HTTP\u65b9\u6cd5] \/api\/\u8def\u5f84<\/h4>\n<p>\u529f\u80fd\u8bf4\u660e&#xff1a;\u4e00\u53e5\u8bdd\u63cf\u8ff0\u8fd9\u4e2a\u63a5\u53e3\u505a\u4ec0\u4e48<\/p>\n<p>\u8bf7\u6c42\u53c2\u6570&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u540d\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>name<\/td>\n<td>string<\/td>\n<td>\u662f<\/td>\n<td>\u7528\u6237\u540d\u79f0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8bf7\u6c42\u793a\u4f8b&#xff1a; &#xff08;\u7ed9\u51fa curl \u547d\u4ee4\u793a\u4f8b&#xff09;<\/p>\n<p>\u54cd\u5e94\u793a\u4f8b&#xff1a; &#xff08;\u7ed9\u51fa JSON \u54cd\u5e94\u793a\u4f8b&#xff0c;\u5305\u542b\u6210\u529f\u548c\u5931\u8d25\u4e24\u79cd\u60c5\u51b5&#xff09;<\/p>\n<p>\u9519\u8bef\u7801&#xff1a;<\/p>\n<table>\n<tr>\u9519\u8bef\u7801\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>400<\/td>\n<td>\u53c2\u6570\u7f3a\u5931<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>## \u6267\u884c\u8981\u6c42<\/p>\n<p>1. \u4ece\u4ee3\u7801\u4e2d\u81ea\u52a8\u63d0\u53d6\u8def\u7531\u5b9a\u4e49\u3001\u8bf7\u6c42\u53c2\u6570\u3001\u54cd\u5e94\u7ed3\u6784\u3002<br \/>\n2. \u53c2\u6570\u7684\u7c7b\u578b\u548c\u5fc5\u586b\u6027\u4ece\u4ee3\u7801\u7684\u6821\u9a8c\u903b\u8f91\u4e2d\u63a8\u65ad&#xff0c;\u4e0d\u8981\u778e\u731c\u3002<br \/>\n3. \u54cd\u5e94\u793a\u4f8b\u8981\u5305\u542b\u771f\u5b9e\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u4e0d\u8981\u7528 &#096;&#8230;&#096; \u7701\u7565\u3002<br \/>\n4. \u5982\u679c\u4ee3\u7801\u4e2d\u6709 Swagger\/OpenAPI \u6ce8\u89e3&#xff0c;\u4f18\u5148\u4ee5\u6ce8\u89e3\u4e3a\u51c6\u3002<br \/>\n5. \u8f93\u51fa\u4e3a Markdown \u683c\u5f0f&#xff0c;\u5b58\u653e\u5230\u9879\u76ee\u6839\u76ee\u5f55\u7684 &#096;docs\/api\/&#096; \u4e0b&#xff0c;\u6309\u6a21\u5757\u5206\u6587\u4ef6\u3002<\/p>\n<p>## \u98ce\u683c\u7ea6\u675f<\/p>\n<p>&#8211; \u4f7f\u7528\u4e2d\u6587\u63cf\u8ff0<br \/>\n&#8211; \u4fdd\u6301\u7b80\u6d01&#xff0c;\u4e0d\u8981\u52a0\u591a\u4f59\u7684\u89e3\u91ca\u6027\u6587\u5b57<br \/>\n&#8211; \u8def\u5f84\u4e2d\u7684\u53d8\u91cf\u7528 &#096;{}&#096; \u5305\u88f9&#xff0c;\u5982 &#096;\/api\/users\/{id}&#096; <\/p>\n<h5>\u7b2c\u4e09\u6b65&#xff1a;\u7406\u89e3\u89e6\u53d1\u673a\u5236<\/h5>\n<p>\u6ce8\u610f frontmatter \u4e2d\u7684\u4e09\u4e2a\u5173\u952e\u5b57\u6bb5&#xff1a;<\/p>\n<p>description\u00a0\u63cf\u8ff0\u4e86\u8fd9\u6761\u89c4\u5219\u7684\u7528\u9014&#xff0c;Trae \u7684 AI \u4f1a\u6839\u636e\u5b83\u6765\u5224\u65ad\u662f\u5426\u9700\u8981\u52a0\u8f7d\u8fd9\u6761\u89c4\u5219\u3002<\/p>\n<p>alwaysApply\u00a0\u8bbe\u4e3a\u00a0false&#xff0c;\u610f\u5473\u7740\u8fd9\u6761\u89c4\u5219\u4e0d\u4f1a\u59cb\u7ec8\u751f\u6548&#xff0c;\u53ea\u5728\u5339\u914d\u65f6\u624d\u89e6\u53d1\u3002\u5982\u679c\u4f60\u8bbe\u6210\u00a0true&#xff0c;\u90a3\u6bcf\u6b21\u5bf9\u8bdd Trae \u90fd\u4f1a\u5e26\u4e0a\u8fd9\u6761\u89c4\u5219\u2014\u2014\u9002\u5408\u4ee3\u7801\u98ce\u683c\u4e4b\u7c7b\u7684\u901a\u7528\u89c4\u5219&#xff0c;\u4f46\u4e0d\u9002\u5408\u6211\u4eec\u8fd9\u4e2a\u573a\u666f\u3002<\/p>\n<p>globs\u00a0\u5b9a\u4e49\u4e86\u6587\u4ef6\u5339\u914d\u6a21\u5f0f\u3002\u5f53\u4f60\u6253\u5f00\u6216\u7f16\u8f91\u00a0controllers\/\u3001routes\/\u3001api\/\u00a0\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u65f6&#xff0c;Trae \u4f1a\u81ea\u52a8\u5173\u8054\u8fd9\u6761\u89c4\u5219\u3002<\/p>\n<p>\u9664\u4e86\u6587\u4ef6\u5339\u914d\u81ea\u52a8\u89e6\u53d1&#xff0c;\u4f60\u8fd8\u53ef\u4ee5\u5728\u5bf9\u8bdd\u4e2d\u624b\u52a8\u5f15\u7528\u89c4\u5219&#xff1a;\u8f93\u5165\u00a0#api-docs\u00a0\u5373\u53ef\u3002<\/p>\n<h5>\u7b2c\u56db\u6b65&#xff1a;\u9a8c\u8bc1\u6548\u679c<\/h5>\n<p>\u5728 Trae \u4e2d\u6253\u5f00\u4e00\u4e2a controller \u6587\u4ef6&#xff0c;\u7136\u540e\u5728\u804a\u5929\u6846\u8f93\u5165&#xff1a;<\/p>\n<p>\u5e2e\u6211\u628a\u8fd9\u4e2a\u6587\u4ef6\u91cc\u7684\u63a5\u53e3\u90fd\u751f\u6210\u6587\u6863<\/p>\n<p>Trae \u4f1a\u81ea\u52a8\u52a0\u8f7d\u4f60\u7684\u89c4\u5219&#xff0c;\u6309\u7167\u4f60\u5b9a\u4e49\u7684\u6a21\u677f\u683c\u5f0f\u8f93\u51fa\u6587\u6863\u3002<\/p>\n<h4>\u9879\u76ee\u89c4\u5219 vs \u4e2a\u4eba\u89c4\u5219<\/h4>\n<p>\u4ec0\u4e48\u65f6\u5019\u7528\u9879\u76ee\u89c4\u5219&#xff1f;\u5f53\u8fd9\u4e2a\u89c4\u8303\u662f\u56e2\u961f\u5171\u4eab\u7684\u3001\u548c\u5177\u4f53\u9879\u76ee\u7ed1\u5b9a\u7684&#xff0c;\u6bd4\u5982 API \u6587\u6863\u683c\u5f0f\u3001\u4ee3\u7801\u98ce\u683c\u3001commit \u89c4\u8303\u3002\u653e\u5728\u00a0.trae\/rules\/\u00a0\u91cc\u63d0\u4ea4\u5230 Git&#xff0c;\u961f\u53cb\u62c9\u53d6\u4ee3\u7801\u540e\u81ea\u52a8\u751f\u6548\u3002<\/p>\n<p>\u4ec0\u4e48\u65f6\u5019\u7528\u4e2a\u4eba\u89c4\u5219&#xff1f;\u5f53\u4f60\u4e2a\u4eba\u7684\u504f\u597d&#xff0c;\u6bd4\u5982&#034;\u56de\u7b54\u95ee\u9898\u7528\u4e2d\u6587&#034;&#034;\u4ee3\u7801\u6ce8\u91ca\u7528\u82f1\u6587&#034;&#034;\u4f18\u5148\u4f7f\u7528\u51fd\u6570\u5f0f\u5199\u6cd5&#034;\u3002\u8fd9\u4e9b\u8ddf\u9879\u76ee\u65e0\u5173&#xff0c;\u914d\u5728\u5168\u5c40\u5c31\u597d\u3002<\/p>\n<h4>\u89c4\u5219\u6587\u4ef6\u7684\u7ec4\u7ec7\u6280\u5de7<\/h4>\n<p>\u5982\u679c\u4f60\u7684\u89c4\u5219\u8d8a\u6765\u8d8a\u591a&#xff0c;.trae\/rules\/\u00a0\u4e0b\u53ef\u4ee5\u7528\u5b50\u76ee\u5f55\u5206\u7ec4&#xff1a;<\/p>\n<p>.trae\/rules\/<br \/>\n\u251c\u2500\u2500 docs\/<br \/>\n\u2502   \u251c\u2500\u2500 api-docs.md<br \/>\n\u2502   \u2514\u2500\u2500 changelog.md<br \/>\n\u251c\u2500\u2500 code-style\/<br \/>\n\u2502   \u251c\u2500\u2500 naming.md<br \/>\n\u2502   \u2514\u2500\u2500 error-handling.md<br \/>\n\u2514\u2500\u2500 testing\/<br \/>\n    \u2514\u2500\u2500 unit-test.md <\/p>\n<p>Trae \u4f1a\u81ea\u52a8\u9012\u5f52\u626b\u63cf\u5b50\u76ee\u5f55&#xff0c;\u6240\u6709\u00a0.md\u00a0\u89c4\u5219\u6587\u4ef6\u90fd\u4f1a\u88ab\u8bc6\u522b\u3002<\/p>\n<h4>\u548c\u5176\u4ed6\u5e73\u53f0\u7684\u6838\u5fc3\u533a\u522b<\/h4>\n<p>Trae \u7684 Rules \u548c WorkBuddy\/Qoder \u7684 Skills \u6700\u5927\u7684\u533a\u522b\u5728\u4e8e&#xff1a;Rules \u66f4\u504f&#034;\u7ea6\u675f\u548c\u89c4\u8303&#034;&#xff0c;\u662f\u9644\u52a0\u5728 AI \u5bf9\u8bdd\u4e0a\u7684\u4e0a\u4e0b\u6587&#xff1b;\u800c Skills \u66f4\u504f&#034;\u6d41\u7a0b\u548c\u6267\u884c&#034;&#xff0c;\u5b9a\u4e49\u4e86\u5b8c\u6574\u7684\u4efb\u52a1\u6b65\u9aa4\u3002<\/p>\n<p>\u5982\u679c\u4f60\u8981\u505a\u7684\u4e8b\u60c5\u662f&#034;\u5728\u7279\u5b9a\u573a\u666f\u4e0b\u9075\u5b88\u7279\u5b9a\u89c4\u8303&#034;&#xff08;\u6bd4\u5982\u4ee3\u7801\u98ce\u683c\u3001\u6587\u6863\u683c\u5f0f&#xff09;&#xff0c;Trae Rules \u5b8c\u5168\u591f\u7528\u3002\u5982\u679c\u4f60\u9700\u8981&#034;\u8ba9 AI \u6309\u4e00\u5957\u6d41\u7a0b\u81ea\u52a8\u6267\u884c\u591a\u6b65\u4efb\u52a1&#034;&#xff0c;\u53ef\u80fd\u66f4\u9002\u5408\u7528 Skill \u4f53\u7cfb\u3002<\/p>\n<h4>\u5c0f\u7ed3<\/h4>\n<p>Trae \u7684 Rule \u7cfb\u7edf\u80dc\u5728\u8f7b\u91cf\u2014\u2014\u4e00\u4e2a\u00a0.md\u00a0\u6587\u4ef6\u5c31\u662f\u4e00\u6761\u89c4\u5219&#xff0c;\u4e09\u4e2a frontmatter \u5b57\u6bb5\u63a7\u5236\u89e6\u53d1\u6761\u4ef6&#xff0c;\u5b66\u4e60\u6210\u672c\u51e0\u4e4e\u4e3a\u96f6\u3002\u5bf9\u4e8e&#034;API \u6587\u6863\u751f\u6210&#034;\u8fd9\u7c7b\u9700\u8981\u7edf\u4e00\u683c\u5f0f\u7684\u573a\u666f&#xff0c;\u914d\u4e00\u6761\u89c4\u5219\u6bd4\u91cd\u590d\u53ee\u5631 AI \u9ad8\u6548\u5f97\u591a\u3002\u5efa\u8bae\u4f60\u4ece\u81ea\u5df1\u6700\u5e38\u91cd\u590d\u7684\u9700\u6c42\u5f00\u59cb&#xff0c;\u9010\u6b65\u79ef\u7d2f\u89c4\u5219\u5e93\u3002<\/p>\n<p>\u2b50\u514d\u8d39\u4f53\u9a8c\u6e20\u9053<\/p>\n<p>\u60f3\u514d\u8d39\u4f53\u9a8c\u4e5f\u53ef\u4ee5\u524d\u5f80\u9b54\u828bAI\u5b98\u7f51https:\/\/www.moyu.info\/register?aff&#061;uZut\u6ce8\u518c&#xff0c;\u5373\u53ef\u9886\u53d6\u514d\u8d39\u989d\u5ea6&#xff0c;\u5148\u8dd1\u8d77\u6765\u518d\u51b3\u5b9a\u8981\u4e0d\u8981\u5347\u7ea7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u7528\u5e73\u53f0&#xff1a;Trae IDE | \u96be\u5ea6&#xff1a;\u96f6\u57fa\u7840 | \u9605\u8bfb\u65f6\u95f4&#xff1a;\u7ea67\u5206\u949f \u524d\u8a00<br \/>\n\u5199 API \u6587\u6863\u5927\u6982\u662f\u540e\u7aef\u5f00\u53d1\u8005\u6700\u4e0d\u613f\u610f\u505a\u7684\u4e8b\u60c5\u4e4b\u4e00\u3002\u4ee3\u7801\u5199\u5b8c\u4e86&#xff0c;\u6587\u6863\u603b\u662f\u80fd\u62d6\u5c31\u62d6\u3002\u5982\u679c\u4f60\u7528 Trae IDE&#xff0c;\u5176\u5b9e\u53ea\u9700\u8981\u914d\u4e00\u6761 Rule&#xff08;\u89c4\u5219&#xff09;&#xff0c;\u5c31\u80fd\u8ba9 AI \u5728\u4f60\u5199\u5b8c\u4ee3\u7801\u540e\u81ea\u52a8\u751f\u6210\u6807\u51c6\u683c\u5f0f\u7684 API \u6587\u6863\u3002<br \/>\n\u548c WorkBuddy\u3001Qoder \u7684 Skill \u4f53\u7cfb\u4e0d\u540c&#xff0c;<\/p>\n","protected":false},"author":2,"featured_media":88115,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7049,9985,74,4806,159],"topic":[],"class_list":["post-88117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-skill","tag-9985","tag-agent","tag-opc","tag-trae"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/88117.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9002\u7528\u5e73\u53f0&#xff1a;Trae IDE | \u96be\u5ea6&#xff1a;\u96f6\u57fa\u7840 | \u9605\u8bfb\u65f6\u95f4&#xff1a;\u7ea67\u5206\u949f \u524d\u8a00 \u5199 API \u6587\u6863\u5927\u6982\u662f\u540e\u7aef\u5f00\u53d1\u8005\u6700\u4e0d\u613f\u610f\u505a\u7684\u4e8b\u60c5\u4e4b\u4e00\u3002\u4ee3\u7801\u5199\u5b8c\u4e86&#xff0c;\u6587\u6863\u603b\u662f\u80fd\u62d6\u5c31\u62d6\u3002\u5982\u679c\u4f60\u7528 Trae IDE&#xff0c;\u5176\u5b9e\u53ea\u9700\u8981\u914d\u4e00\u6761 Rule&#xff08;\u89c4\u5219&#xff09;&#xff0c;\u5c31\u80fd\u8ba9 AI \u5728\u4f60\u5199\u5b8c\u4ee3\u7801\u540e\u81ea\u52a8\u751f\u6210\u6807\u51c6\u683c\u5f0f\u7684 API \u6587\u6863\u3002 \u548c WorkBuddy\u3001Qoder \u7684 Skill \u4f53\u7cfb\u4e0d\u540c&#xff0c;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/88117.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-31T06:16:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260731061627-6a6c3dbb7cd4f.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88117.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/88117.html\",\"name\":\"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-31T06:16:29+00:00\",\"dateModified\":\"2026-07-31T06:16:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/88117.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/88117.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88117.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/88117.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9002\u7528\u5e73\u53f0&#xff1a;Trae IDE | \u96be\u5ea6&#xff1a;\u96f6\u57fa\u7840 | \u9605\u8bfb\u65f6\u95f4&#xff1a;\u7ea67\u5206\u949f \u524d\u8a00 \u5199 API \u6587\u6863\u5927\u6982\u662f\u540e\u7aef\u5f00\u53d1\u8005\u6700\u4e0d\u613f\u610f\u505a\u7684\u4e8b\u60c5\u4e4b\u4e00\u3002\u4ee3\u7801\u5199\u5b8c\u4e86&#xff0c;\u6587\u6863\u603b\u662f\u80fd\u62d6\u5c31\u62d6\u3002\u5982\u679c\u4f60\u7528 Trae IDE&#xff0c;\u5176\u5b9e\u53ea\u9700\u8981\u914d\u4e00\u6761 Rule&#xff08;\u89c4\u5219&#xff09;&#xff0c;\u5c31\u80fd\u8ba9 AI \u5728\u4f60\u5199\u5b8c\u4ee3\u7801\u540e\u81ea\u52a8\u751f\u6210\u6807\u51c6\u683c\u5f0f\u7684 API \u6587\u6863\u3002 \u548c WorkBuddy\u3001Qoder \u7684 Skill \u4f53\u7cfb\u4e0d\u540c&#xff0c;","og_url":"https:\/\/www.wsisp.com\/helps\/88117.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-31T06:16:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260731061627-6a6c3dbb7cd4f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/88117.html","url":"https:\/\/www.wsisp.com\/helps\/88117.html","name":"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-31T06:16:29+00:00","dateModified":"2026-07-31T06:16:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/88117.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/88117.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/88117.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7528Trae\u89c4\u5219\u641e\u5b9aAPI\u6587\u6863\u751f\u6210"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=88117"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88117\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/88115"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=88117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=88117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=88117"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=88117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}