n8n-nodes-nuwa
v0.1.1
Published
An n8n node for integrating with the GVA (Gin-Vue-Admin) backend system.
Maintainers
Readme
n8n-nodes-nuwa
An n8n community node for integrating with GVA (Gin-Vue-Admin) backend systems.
Features
- Dynamic API Discovery: Automatically fetches available API endpoints from your GVA backend
- Grouped API Selection: APIs are organized by groups for easy navigation
- Flexible Request Configuration: Support for both Form-Data and JSON request bodies
- Query Parameters: Add custom query parameters to your requests
- Secure Authentication: Uses x-token header authentication
Installation
Community Nodes (Recommended)
- Go to Settings > Community Nodes in your n8n instance
- Click Install a community node
- Enter
n8n-nodes-nuwa - Click Install
Manual Installation
- Navigate to your n8n custom nodes directory (usually
~/.n8n/custom/) - Clone or download this repository
- Run
npm installandnpm run build - Restart your n8n instance
Configuration
Credentials
Before using the GVA node, you need to set up your credentials:
- Go to Credentials in your n8n instance
- Click Create New Credential
- Select GVA API
- Fill in:
- Base URL: Your GVA backend URL (e.g.,
https://api.yourdomain.com) - X-Token: Your GVA API authentication token
- Base URL: Your GVA backend URL (e.g.,
Node Usage
- Add the GVA node to your workflow
- Select your GVA API credentials
- Choose an API Group from the dropdown (automatically populated from your backend)
- Select a specific API Operation from the chosen group
- Configure additional options as needed:
- Send Body: Enable to send request body data
- Body Content Type: Choose between Form-Data or JSON
- Query Parameters: Add custom query parameters
API Requirements
Your GVA backend must provide an endpoint at /api/api/getAllApis that returns API information in the following format:
{
"data": {
"apis": [
{
"path": "/api/user/create",
"method": "POST",
"apiGroup": "User Management",
"description": "Create a new user"
},
{
"path": "/api/user/list",
"method": "GET",
"apiGroup": "User Management",
"description": "Get user list"
}
]
}
}Development
Prerequisites
- Node.js (LTS version)
- npm or pnpm
Setup
git clone <repository-url>
cd n8n-nodes-nuwa
npm installBuild
npm run buildLint
npm run lintLocal Testing
- Build the project:
npm run build - Link the package:
npm link - Navigate to your n8n custom directory:
cd ~/.n8n/custom/ - Link the node:
npm link n8n-nodes-nuwa - Restart n8n
License
MIT
Support
For issues and questions, please create an issue in the repository.
MIT License: This project is licensed under the MIT License. See the LICENSE file for full details. MIT allows commercial use, modification, distribution, and private use.
