rest-api-generator Verified Gold

Featured Verified Gold · 95/100 api-development v1.0.0 by Jeremy Longshore

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

MIT License
Free Pricing

Installation

Open Claude Code and run this command:

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

Use --global to install for all projects, or --project for current project only.

What It Does

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

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

Skills (1)

generating-rest-apis SKILL.md View full skill →

Generate complete REST API implementations from OpenAPI specifications or database schemas.

ReadWriteEditGrepGlobBash(api:rest-*)

How It Works

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]

Ready to use rest-api-generator?