Generate production-ready API code scaffolds from zero. REST, GraphQL, auth, tests — all in one tool.
bash scripts/apigen.sh <command> <resource_name> [options]
— RESTful CRUD endpoints (Express.js) — GraphQL Type + Query + Mutation schema — OpenAPI 3.0 specification document — Python API client class — Mock API server with in-memory store — Auth code (jwt / oauth / apikey) — Rate limiter (token-bucket / sliding-window) — Jest + Supertest API test suitebash 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
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 个版本