返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Nodes Declarative Patterns

使用声明式风格和基于JSON的路由配置来构建n8n节点,以实现REST API集成。在实现标准的CRUD操作、配置requestDefaults、在操作选项中定义路由、设置声明式分页、通过routing.send添加查询参数或使用postReceive处理响应时,请使用此技能。适用于构建具有简单请求/响应模式和自动分页处理的REST API节点。

person作者: jakexiaohubgithub

When to use this skill:

  • When building REST API integrations with standard CRUD operations
  • When configuring requestDefaults (baseURL, headers)
  • When defining routing configuration in operation options
  • When using routing.request for HTTP method and URL
  • When implementing routing.send for body or query parameters
  • When setting up declarative pagination (offset-based)
  • When using displayOptions to show/hide fields based on resource/operation
  • When processing responses with output.postReceive
  • When extracting data from nested response properties (rootProperty)
  • When adding filters as collection type properties with routing
  • When deciding whether to use declarative vs programmatic style
  • When working with *.node.ts files that use routing patterns

Nodes Declarative Patterns

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle nodes declarative patterns.

Instructions

For details, refer to the information provided in this file: nodes declarative patterns