← 返回
安全合规 中文

Api Generator

API code generator. Generate RESTful endpoints, GraphQL schemas, OpenAPI/Swagger docs, API clients, mock servers, authentication, rate limiting.
API代码生成器。生成RESTful端点、GraphQL架构、OpenAPI/Swagger文档、API客户端、模拟服务器,并支持身份验证与速率限制。
ckchzh
安全合规 clawhub v2.0.0 4 版本 99870 Key: 无需
★ 3
Stars
📥 3,014
下载
💾 33
安装
4
版本
#chinese#latest#productivity

概述

⚡ API Generator

Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests — all in one tool.

Usage

bash scripts/apigen.sh <command> <resource_name> [options]

Commands

Core Generation

  • rest — RESTful CRUD endpoints (Express.js)
  • graphql — GraphQL Type + Query + Mutation schema
  • swagger — OpenAPI 3.0 specification document

Utilities

  • client — Python API client class
  • mock — Mock API server with in-memory store
  • auth — Auth code (jwt / oauth / apikey)
  • rate-limit — Rate limiter (token-bucket / sliding-window)
  • test — Jest + Supertest API test suite

Examples

bash scripts/apigen.sh rest user          # RESTful user endpoints
bash scripts/apigen.sh graphql product    # GraphQL product schema
bash scripts/apigen.sh auth jwt           # JWT authentication
bash scripts/apigen.sh test order         # Order API tests

Output

All code prints to stdout. Copy or redirect into your project files.

Generated code includes full comments and can serve as a project starting point.


💬 Feedback & Feature Requests: https://bytesagain.com/feedback

Powered by BytesAgain | bytesagain.com

版本历史

共 4 个版本

  • v2.0.0 当前
    2026-03-28 22:04 安全 安全
  • v2.3.4
    2026-03-27 19:46
  • v1.0.0
    2026-03-26 22:24
  • v1.0.1
    2026-03-14 01:34

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Legal Advisor

ckchzh
生成劳动、消费、租赁及交通纠纷法律模板,适用于撰写纠纷信函、审查租户权利、准备索赔等。
★ 4 📥 4,004
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,714
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,605