Sponsor Suno AI Music arrow_forward
Plugin

Rest Api Generator

Generate RESTful APIs from schemas with proper routing, validation, and documentation

Type
Plugin
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Version
1.23.0
Author
Jeremy Longshore

What Rest Api Generator is

Rest Api Generator is a plugin published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.

Installing Rest Api Generator adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.

How to install Rest Api Generator

Claude Code

  1. Add the repository as a plugin marketplace: claude plugin marketplace add jeremylongshore/tons-of-skills-marketplace
  2. Install the plugin: claude plugin install rest-api-generator@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter jeremylongshore/tons-of-skills-marketplace (the owner/repo shorthand works for GitHub).
  3. Find Rest Api Generator in the list, click Install, then connect any connectors it needs from its Connectors tab.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/api-development/rest-api-generator/.claude-plugin/plugin.json, shared under the repository's MIT license. Read the full file on GitHub.

Generate production-ready RESTful APIs from schema definitions with proper routing, validation, error handling, and documentation.

Installation

/plugin install rest-api-generator@claude-code-plugins-plus

Usage

Basic Usage

/generate-rest-api

Or use the shortcut:

/gra

What It Does

  1. Asks about your API requirements (resources, operations, framework)
  2. Generates complete REST API structure with routes, controllers, models
  3. Adds validation schemas with Joi, Pydantic, or Zod
  4. Implements authentication middleware (JWT, OAuth, API keys)
  5. Creates OpenAPI/Swagger documentation
  6. Generates integration tests for all endpoints
  7. Follows REST best practices (proper HTTP methods, status codes, pagination)

Example Interaction

You: /generate-rest-api

Claude: I'll help you generate a RESTful API. Let me gather some details:

1. What resources/entities do you need? (e.g., users, posts, products)
2. What framework would you like? (Express, FastAPI, Django, Flask, NestJS)
3. What database? (PostgreSQL, MongoDB, MySQL)
4. Do you need authentication? (JWT, OAuth, API keys)

You: Users and posts, Express with PostgreSQL, JWT auth

Claude: [Generates complete API structure with routes, controllers, models, validation, tests, and OpenAPI docs]

Generated API Structure

api/
├── routes/               # RESTful endpoints
├── controllers/          # Business logic
├── models/              # Data models
├── middleware/          # Auth, validation, rate limiting
├── schemas/             # Validation schemas
├── tests/               # Integration tests
├── docs/                # OpenAPI documentation
└── server.js            # Entry point

Features

  • REST Principles - Resource-based URLs, proper HTTP methods
  • Validation - Request body, query params, path params
  • Authentication - JWT, OAuth, API key support
  • Documentation - OpenAPI 3.0 specification
  • Testing - Integration tests with Jest/Pytest
  • Pagination - Limit, offset, cursor-based
  • Filtering - Query parameter filtering
  • Sorting - Multi-field sorting
  • Rate Limiting - Prevent API abuse
  • CORS - Cross-origin support
  • Error Handling - Standardized error responses

Supported Frameworks

  • Node.js: Express, NestJS, Fastify
  • Python: FastAPI, Django REST Framework, Flask
  • Go: Gin, Echo
  • Ruby: Rails API, Sinatra

Best Practices

  • Proper HTTP status codes (200, 201, 400, 404, 500)
  • API versioning (/v1/, /v2/)
  • Input validation on all endpoints
  • Consistent error response format
  • Comprehensive OpenAPI documentation
  • Security headers (CORS, CSP, HSTS)
  • Rate limiting and throttling
  • Request/response logging

Requirements

  • Node.js 18+ (for Express/NestJS)
  • Python 3.9+ (for FastAPI/Django)
  • Database (PostgreSQL, MongoDB, MySQL)

License

MIT

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Rest Api Generator?

Rest Api Generator is a plugin for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Generate RESTful APIs from schemas with proper routing, validation, and documentation

How do I install Rest Api Generator in Claude Code?

Add the repository as a plugin marketplace: claude plugin marketplace add jeremylongshore/tons-of-skills-marketplace Install the plugin: claude plugin install rest-api-generator@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.

Can I use Rest Api Generator in Claude Cowork?

Open Customize → Plugins and choose Add marketplace. Enter jeremylongshore/tons-of-skills-marketplace (the owner/repo shorthand works for GitHub). Find Rest Api Generator in the list, click Install, then connect any connectors it needs from its Connectors tab.

Is Rest Api Generator safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.