api-naming
FreePowerX API 命名与访问规范(/api/v1、/admin、/internal 边界)。
The English summary is being prepared. Showing the original description.
PowerX Nuxt API Client 规则。
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
本文件内嵌规则。kind: ruleset
name: plugin/crud/frontend/nuxt_api_client
version: 1
client:
runtime_config:
public_keys:
apiBase: "NUXT_PUBLIC_API_BASE"
pluginId: "NUXT_PUBLIC_PLUGIN_ID"
powerxProxy: "NUXT_PUBLIC_POWERX_PROXY"
defaults:
apiBase: "/_p/<plugin-id>/api/v1"
powerxProxy: 1
# 约定:前端服务统一放置在 web-admin/app/composables/api/services 下
files:
- target: web-admin/plugins/api.ts
template: builtin/nuxt_api_plugin_fetch
- target: web-admin/composables/useTemplates.ts
template: builtin/nuxt_composable_crud
params:
resource: "templates"
dto:
item: "TemplateItem"
create: "TemplateCreateReq"
update: "TemplateUpdateReq"
gates.require: [PG-FE-API-001]
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
PowerX API 命名与访问规范(/api/v1、/admin、/internal 边界)。
The English summary is being prepared. Showing the original description.
PowerX 底座 Capability 治理与发布准入规则。用于审计 REST/OpenAPI/gRPC/Gin 生成的能力候选、正式 platform_capabilities 目录、Capability Registry 登记、agent_usable/permission_code/risk_level 元数据、ignore 清单和缺失能力;当用户要求“重新识别能力”“能力是否能发布”“补齐能力登记”“检查 capability-gen/audit/check”“底座接口暴露给插件/agent”时使用。
The English summary is being prepared. Showing the original description.
PowerX REST 契约规则(资源命名、分页、错误、版本化)。
The English summary is being prepared. Showing the original description.
PowerX CRUD 依赖注入规则(Deps 单入口、构造注入、跨传输复用)。
The English summary is being prepared. Showing the original description.
PowerX CRUD DTO 规则(输入输出分离、分页、校验)。
The English summary is being prepared. Showing the original description.
PowerX CRUD gRPC 开发规范(proto、server、拦截器、错误映射)。
The English summary is being prepared. Showing the original description.