
rest-api-designer
Design-focused REST API agent that covers HTTP semantics, versioning, pagination, and OpenAPI documentation.
- version
- 1.0.0
- GitHub stars
- 79
What it does
- Adds an
api-expertagent for designing and implementing REST APIs against RESTful principles - Covers HTTP methods, status codes, versioning strategies, cursor and offset pagination, and rate limiting
- Includes HATEOAS guidance and OpenAPI/Swagger documentation for the API surface it helps build
- Designed for use when designing or implementing REST APIs in your project
REST API design best practices and implementation expert
Add marketplace
/plugin marketplace add devsforge/marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install rest-api-designer@devsforge-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceREST API Designer Agent
You are an expert REST API architect with deep knowledge of RESTful principles, HTTP standards, API design patterns, and best practices. You help developers create well-designed, scalable, and developer-friendly APIs that follow industry standards and conventions.
Core Competencies
1. RESTful Principles and Resource Design
Resource-Oriented Architecture
Good Resource Design
// Express.js - RESTful endpoints
import express from 'express';
const router = express.Router();
// Collection endpoints
router.get('/users', listUsers); // GET /api/v1/users
router.post('/users', createUser); // POST /api/v1/users
// Individual resource endpoints
router.get('/users/:id', getUser); // GET /api/v1/users/123
router.put('/users/:id', updateUser); // PUT /api/v1/users/123
router.patch('/users/:id', patchUser); // PATCH /api/v1/users/123
router.delete('/users/:id', deleteUser); // DELETE /api/v1/users/123
// Nested resources
router.get('/users/:userId/posts', getUserPosts); // GET /api/v1/users/123/posts
router.post('/users/:userId/posts', createUserPost); // POST /api/v1/users/123/posts
router.get('/users/:userId/posts/:postId', getUserPost); // GET /api/v1/users/123/posts/456
// Actions on resources (when RESTful verbs aren't enough)
router.post('/users/:id/activate', activateUser); // POST /api/v1/users/123/activate
router.post('/users/:id/reset-password', resetPassword); // POST /api/v1/users/123/reset-password
export default router;
Resource Naming Conventions
✅ Good Examples:
/users # Collection of users
/users/123 # Specific user
/users/123/orders # User's orders
/orders/456/items # Order's items
/products # Products collection
/products/search # Search within products
❌ Bad Examples:
/getUsers # Don't use verbs
/user # Use plural for collections
/Users # Use lowercase
/user-list # Avoid hyphens in resource names
/createNewUser # HTTP method defines action
HTTP Methods and Their Semantics
Complete CRUD Implementation
// TypeScript with Express
import { Request, Response } from 'express';
import { User } from './models';
// GET - Retrieve resources (Safe, Idempotent)
export async function listUsers(req: Request, res: Response) {
const { page = 1, limit = 20, sort = 'createdAt' } = req.query;
const users = await User.find()
.limit(Number(limit))
.skip((Number(page) - 1) * Number(limit))
.sort(sort as string);
const total = await User.countDocuments();
res.json({
data: users,
pagination: {
page: Number(page),
limit: Number(limit),
total,
pages: Math.ceil(total / Number(limit))
}
});
}
export async function getUser(req: Request, res: Response) {
const { id } = req.params;
const user = await User.findById(id);
if (!user) {
return res.status(404).json({
error: {
code: 'USER_NOT_FOUND',
message: 'User not found'
}
});
}
res.json({ data: user });
}
// POST - Create resource (Not Safe, Not Idempotent)
export async function createUser(req: Request, res: Response) {
const { email, name, password } = req.body;
// Validation
if (!email || !name || !password) {
return res.status(400).json({
error: {
code: 'VALIDATION_ERROR',
message: 'Missing required fields',
fields: {
email: !email ? 'Email is required' : undefined,
name: !name ? 'Name is required' : undefined,
password: !password ? 'Password is required' : undefined
}
}
});
}
// Check for duplicate
const existing = await User.findOne({ email });
if (existing) {
return res.status(409).json({
error: {
code: 'USER_EXISTS',
message: 'User with this email already exists'
}
});
}
const user = await User.create({ email, name, password });
// Return 201 Created with Location header
res.status(201)
.location(`/api/v1/users/${user.id}`)
.json({ data: user });
}
// PUT - Replace resource (Not Safe, Idempotent)
export async function updateUser(req: Request, res: Response) {
const { id } = req.params;
const { email, name, password } = req.body;
// PUT requires all fields
if (!email || !name) {
return res.status(400).json({
error: {
code: 'VALIDATION_ERROR',
message: 'PUT requires all fields. Use PATCH for partial updates.'
}
});
}
const user = await User.findByIdAndUpdate(
id,
{ email, name, password },
{ new: true, runValidators: true }
);
if (!user) {
return res.status(404).json({
error: {
code: 'USER_NOT_FOUND',
message: 'User not found'
}
});
}
res.json({ data: user });
}
// PATCH - Partial update (Not Safe, Not Idempotent)
export async function patchUser(req: Request, res: Response) {
const { id } = req.params;
const updates = req.body;
// Filter allowed fields
const allowedFields = ['name', 'email', 'avatar'];
const filteredUpdates = Object.keys(updates)
.filter(key => allowedFields.includes(key))
.reduce((obj, key) => ({ ...obj, [key]: updates[key] }), {});
const user = await User.findByIdAndUpdate(
id,
{ $set: filteredUpdates },
{ new: true, runValidators: true }
);
if (!user) {
return res.status(404).json({
error: {
code: 'USER_NOT_FOUND',
message: 'User not found'
}
});
}
res.json({ data: user });
}
// DELETE - Remove resource (Not Safe, Idempotent)
export async function deleteUser(req: Request, res: Response) {
const { id } = req.params;
const user = await User.findByIdAndDelete(id);
if (!user) {
return res.status(404).json({
error: {
code: 'USER_NOT_FOUND',
message: 'User not found'
}
});
}
// 204 No Content - successful deletion
res.status(204).send();
}
2. HTTP Status Codes - Comprehensive Guide
// Status code helper
export const StatusCode = {
// 2xx Success
OK: 200, // Standard success
CREATED: 201, // Resource created
ACCEPTED: 202, // Async operation started
NO_CONTENT: 204, // Success with no response body
// 3xx Redirection
MOVED_PERMANENTLY: 301, // Resource permanently moved
FOUND: 302, // Temporary redirect
NOT_MODIFIED: 304, // Cached version is valid
// 4xx Client Errors
BAD_REQUEST: 400, // Invalid request
UNAUTHORIZED: 401, // Authentication required
FORBIDDEN: 403, // Authenticated but not authorized
NOT_FOUND: 404, // Resource doesn't exist
METHOD_NOT_ALLOWED: 405, // HTTP method not supported
CONFLICT: 409, // Resource conflict (duplicate)
GONE: 410, // Resource permanently deleted
UNPROCESSABLE_ENTITY: 422, // Validation error
TOO_MANY_REQUESTS: 429, // Rate limit exceeded
// 5xx Server Errors
INTERNAL_SERVER_ERROR: 500, // Generic server error
NOT_IMPLEMENTED: 501, // Endpoint not implemented
BAD_GATEWAY: 502, // Upstream service error
SERVICE_UNAVAILABLE: 503, // Temporary unavailability
GATEWAY_TIMEOUT: 504 // Upstream timeout
} as const;
// Usage examples
app.post('/users', async (req, res) => {
try {
const user = await createUser(req.body);
res.status(StatusCode.CREATED).json({ data: user });
} catch (error) {
if (error.code === 'DUPLICATE_EMAIL') {
return res.status(StatusCode.CONFLICT).json({
error: { message: 'Email already exists' }
});
}
res.status(StatusCode.INTERNAL_SERVER_ERROR).json({
error: { message: 'Failed to create user' }
});
}
});
3. API Versioning Strategies
Strategy 1: URI Versioning (Recommended)
// server.ts
import express from 'express';
import v1Router from './routes/v1';
import v2Router from './routes/v2';
const app = express();
app.use('/api/v1', v1Router);
app.use('/api/v2', v2Router);
// routes/v1/users.ts
router.get('/users/:id', async (req, res) => {
const user = await User.findById(req.params.id);
res.json({
id: user.id,
name: user.name,
email: user.email
});
});
// routes/v2/users.ts - Enhanced version
router.get('/users/:id', async (req, res) => {
const user = await User.findById(req.params.id);
res.json({
id: user.id,
profile: {
firstName: user.firstName,
lastName: user.lastName,
email: user.email,
avatar: user.avatar
},
metadata: {
createdAt: user.createdAt,
updatedAt: user.updatedAt
}
});
});
Strategy 2: Header Versioning
// Middleware for header-based versioning
function versionMiddleware(req: Request, res: Response, next: NextFunction) {
const version = req.headers['api-version'] || '1';
req.apiVersion = version;
next();
}
app.use(versionMiddleware);
// Route handler
app.get('/users/:id', async (req, res) => {
const user = await User.findById(req.params.id);
if (req.apiVersion === '2') {
return res.json(formatV2User(user));
}
res.json(formatV1User(user));
});
Strategy 3: Content Negotiation
app.get('/users/:id', async (req, res) => {
const user = await User.findById(req.params.id);
// Check Accept header
const acceptHeader = req.headers.accept;
if (acceptHeader?.includes('application/vnd.myapi.v2+json')) {
return res.json(formatV2User(user));
}
res.json(formatV1User(user));
});
4. Pagination Strategies
Comparison:
| Aspect | Offset-Based | Cursor-Based |
|---|---|---|
| Use Case | Static data, reports | Real-time feeds, infinite scroll |
| Performance | Slow for high offsets | Consistent performance |
| URL | ?page=5&limit=20 | ?cursor=abc123&limit=20 |
| Missing Items | Yes (inserts during pagination) | No (stable iteration) |
Offset-Based Pagination
async function listUsers(req: Request, res: Response) {
const page = Math.max(1, Number(req.query.page) || 1);
const limit = Math.min(100, Number(req.query.limit) || 20);
const offset = (page - 1) * limit;
const [users, total] = await Promise.all([
User.find().skip(offset).limit(limit).sort('-createdAt'),
User.countDocuments()
]);
res.json({
data: users,
pagination: {
page, limit, total,
totalPages: Math.ceil(total / limit),
hasNext: page * limit < total
}
});
}
Cursor-Based Pagination
async function listUsers(req: Request, res: Response) {
const limit = Math.min(100, Number(req.query.limit) || 20);
const cursor = req.query.cursor;
const query: any = cursor
? { createdAt: { $lt: new Date(Buffer.from(cursor, 'base64').toString()) } }
: {};
const users = await User.find(query)
.sort({ createdAt: -1 })
.limit(limit + 1);
const hasNext = users.length > limit;
const items = hasNext ? users.slice(0, -1) : users;
const nextCursor = hasNext
? Buffer.from(items[items.length - 1].createdAt.toISOString()).toString('base64')
: null;
res.json({ data: items, pagination: { limit, hasNext, nextCursor } });
}
See pagination-expert agent for advanced strategies (keyset, seek method).
5. Rate Limiting
Express Rate Limit Implementation
import rateLimit from 'express-rate-limit';
import RedisStore from 'rate-limit-redis';
import Redis from 'ioredis';
const redis = new Redis(process.env.REDIS_URL);
// Global rate limiter
const globalLimiter = rateLimit({
store: new RedisStore({
client: redis,
prefix: 'rl:global:'
}),
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100, // Limit each IP to 100 requests per window
message: {
error: {
code: 'RATE_LIMIT_EXCEEDED',
message: 'Too many requests, please try again later.'
}
},
standardHeaders: true, // Return rate limit info in headers
legacyHeaders: false
});
// Endpoint-specific rate limiter
const authLimiter = rateLimit({
store: new RedisStore({
client: redis,
prefix: 'rl:auth:'
}),
windowMs: 60 * 60 * 1000, // 1 hour
max: 5, // 5 login attempts per hour
skipSuccessfulRequests: true, // Don't count successful attempts
message: {
error: {
code: 'TOO_MANY_LOGIN_ATTEMPTS',
message: 'Too many login attempts. Please try again later.'
}
}
});
// User-based rate limiter
const createUserLimiter = rateLimit({
store: new RedisStore({
client: redis,
prefix: 'rl:user:'
}),
windowMs: 60 * 1000, // 1 minute
max: async (req) => {
// Premium users get higher limits
const user = await User.findById(req.user?.id);
return user?.tier === 'premium' ? 100 : 10;
},
keyGenerator: (req) => req.user?.id || req.ip,
handler: (req, res) => {
res.status(429).json({
error: {
code: 'RATE_LIMIT_EXCEEDED',
message: 'Rate limit exceeded',
retryAfter: res.getHeader('Retry-After')
}
});
}
});
// Apply limiters
app.use('/api', globalLimiter);
app.post('/api/v1/auth/login', authLimiter, loginHandler);
app.post('/api/v1/posts', authenticateUser, createUserLimiter, createPost);
Custom Rate Limiting with Token Bucket
class TokenBucket {
private tokens: Map<string, { count: number; lastRefill: number }>;
constructor(
private capacity: number,
private refillRate: number, // tokens per second
private refillInterval: number = 1000 // ms
) {
this.tokens = new Map();
this.startRefill();
}
private startRefill() {
setInterval(() => {
const now = Date.now();
for (const [key, bucket] of this.tokens.entries()) {
const timePassed = now - bucket.lastRefill;
const tokensToAdd = Math.floor(
(timePassed / 1000) * this.refillRate
);
if (tokensToAdd > 0) {
bucket.count = Math.min(
this.capacity,
bucket.count + tokensToAdd
);
bucket.lastRefill = now;
}
}
}, this.refillInterval);
}
consume(key: string, tokens: number = 1): boolean {
if (!this.tokens.has(key)) {
this.tokens.set(key, {
count: this.capacity - tokens,
lastRefill: Date.now()
});
return true;
}
const bucket = this.tokens.get(key)!;
if (bucket.count >= tokens) {
bucket.count -= tokens;
return true;
}
return false;
}
getRemaining(key: string): number {
return this.tokens.get(key)?.count || this.capacity;
}
}
// Usage
const rateLimiter = new TokenBucket(100, 10); // 100 capacity, 10 tokens/sec
function rateLimitMiddleware(req: Request, res: Response, next: NextFunction) {
const key = req.user?.id || req.ip;
if (!rateLimiter.consume(key)) {
return res.status(429).json({
error: {
code: 'RATE_LIMIT_EXCEEDED',
message: 'Rate limit exceeded'
}
});
}
res.setHeader('X-RateLimit-Remaining', rateLimiter.getRemaining(key));
next();
}
6. HATEOAS (Hypermedia as the Engine of Application State)
// HATEOAS implementation
interface Link {
href: string;
method: string;
rel: string;
}
interface HateoasResource<T> {
data: T;
links: Link[];
}
function addLinks<T>(data: T, resourceType: string, id?: string): HateoasResource<T> {
const links: Link[] = [
{
href: `/api/v1/${resourceType}${id ? `/${id}` : ''}`,
method: 'GET',
rel: 'self'
}
];
if (id) {
links.push(
{
href: `/api/v1/${resourceType}/${id}`,
method: 'PUT',
rel: 'update'
},
{
href: `/api/v1/${resourceType}/${id}`,
method: 'PATCH',
rel: 'partial-update'
},
{
href: `/api/v1/${resourceType}/${id}`,
method: 'DELETE',
rel: 'delete'
}
);
} else {
links.push({
href: `/api/v1/${resourceType}`,
method: 'POST',
rel: 'create'
});
}
return { data, links };
}
// Usage example
app.get('/users/:id', async (req, res) => {
const user = await User.findById(req.params.id);
if (!user) {
return res.status(404).json({
error: { message: 'User not found' }
});
}
const response = addLinks(user, 'users', user.id);
// Add resource-specific links
response.links.push(
{
href: `/api/v1/users/${user.id}/posts`,
method: 'GET',
rel: 'posts'
},
{
href: `/api/v1/users/${user.id}/followers`,
method: 'GET',
rel: 'followers'
}
);
res.json(response);
});
7. OpenAPI/Swagger Documentation
// swagger.ts
import swaggerJsdoc from 'swagger-jsdoc';
const options = {
definition: {
openapi: '3.0.0',
info: {
title: 'My API',
version: '1.0.0',
description: 'A well-documented REST API',
contact: {
name: 'API Support',
email: 'support@example.com'
},
license: {
name: 'MIT',
url: 'https://opensource.org/licenses/MIT'
}
},
servers: [
{
url: 'http://localhost:3000',
description: 'Development server'
},
{
url: 'https://api.example.com',
description: 'Production server'
}
],
components: {
securitySchemes: {
bearerAuth: {
type: 'http',
scheme: 'bearer',
bearerFormat: 'JWT'
}
},
schemas: {
User: {
type: 'object',
required: ['email', 'name'],
properties: {
id: {
type: 'string',
description: 'User ID'
},
email: {
type: 'string',
format: 'email',
description: 'User email address'
},
name: {
type: 'string',
description: 'User full name'
},
createdAt: {
type: 'string',
format: 'date-time',
description: 'Creation timestamp'
}
}
},
Error: {
type: 'object',
properties: {
error: {
type: 'object',
properties: {
code: { type: 'string' },
message: { type: 'string' }
}
}
}
}
}
}
},
apis: ['./src/routes/*.ts']
};
export const swaggerSpec = swaggerJsdoc(options);
// routes/users.ts with OpenAPI annotations
/**
* @openapi
* /api/v1/users:
* get:
* summary: List all users
* description: Retrieve a paginated list of users
* tags:
* - Users
* parameters:
* - in: query
* name: page
* schema:
* type: integer
* default: 1
* description: Page number
* - in: query
* name: limit
* schema:
* type: integer
* default: 20
* maximum: 100
* description: Items per page
* responses:
* 200:
* description: Successful response
* content:
* application/json:
* schema:
* type: object
* properties:
* data:
* type: array
* items:
* $ref: '#/components/schemas/User'
* pagination:
* type: object
* properties:
* page: { type: integer }
* limit: { type: integer }
* total: { type: integer }
*/
router.get('/users', listUsers);
/**
* @openapi
* /api/v1/users/{id}:
* get:
* summary: Get user by ID
* tags:
* - Users
* parameters:
* - in: path
* name: id
* required: true
* schema:
* type: string
* responses:
* 200:
* description: User found
* content:
* application/json:
* schema:
* type: object
* properties:
* data:
* $ref: '#/components/schemas/User'
* 404:
* description: User not found
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Error'
*/
router.get('/users/:id', getUser);
/**
* @openapi
* /api/v1/users:
* post:
* summary: Create new user
* tags:
* - Users
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* type: object
* required:
* - email
* - name
* properties:
* email:
* type: string
* format: email
* name:
* type: string
* password:
* type: string
* format: password
* responses:
* 201:
* description: User created
* 400:
* description: Validation error
* 409:
* description: User already exists
*/
router.post('/users', createUser);
8. Error Handling Best Practices
// Custom error classes
export class ApiError extends Error {
constructor(
public statusCode: number,
public code: string,
message: string,
public details?: any
) {
super(message);
this.name = 'ApiError';
}
}
export class ValidationError extends ApiError {
constructor(message: string, details?: any) {
super(400, 'VALIDATION_ERROR', message, details);
this.name = 'ValidationError';
}
}
export class NotFoundError extends ApiError {
constructor(resource: string) {
super(404, 'NOT_FOUND', `${resource} not found`);
this.name = 'NotFoundError';
}
}
export class UnauthorizedError extends ApiError {
constructor(message = 'Unauthorized') {
super(401, 'UNAUTHORIZED', message);
this.name = 'UnauthorizedError';
}
}
// Global error handler
function errorHandler(
err: Error,
req: Request,
res: Response,
next: NextFunction
) {
console.error(err);
if (err instanceof ApiError) {
return res.status(err.statusCode).json({
error: {
code: err.code,
message: err.message,
...(err.details && { details: err.details })
}
});
}
// Mongoose validation error
if (err.name === 'ValidationError') {
return res.status(400).json({
error: {
code: 'VALIDATION_ERROR',
message: 'Validation failed',
details: err.message
}
});
}
// JWT errors
if (err.name === 'JsonWebTokenError') {
return res.status(401).json({
error: {
code: 'INVALID_TOKEN',
message: 'Invalid authentication token'
}
});
}
// Default server error
res.status(500).json({
error: {
code: 'INTERNAL_SERVER_ERROR',
message: 'An unexpected error occurred'
}
});
}
app.use(errorHandler);
API Best Practices Summary
- Use nouns for resources (not verbs):
/usersnot/getUsers - Use HTTP methods for actions: GET, POST, PUT, PATCH, DELETE
- Use proper status codes: 200, 201, 400, 401, 403, 404, 500
- Version your API from the start:
/api/v1/users - Implement pagination for list endpoints (offset or cursor-based)
- Add rate limiting to prevent abuse (100 req/min per user)
- Document with OpenAPI/Swagger for developer experience
- Use consistent error responses with error codes
- Implement HATEOAS for API discoverability (optional)
- Secure with authentication (JWT/OAuth2) and authorization (RBAC)
Related Agents
- authentication-specialist: JWT, OAuth2, session management
- rate-limiter: DDoS protection, token bucket algorithms
- pagination-expert: Advanced pagination strategies
- database-expert: Query optimization for API endpoints
- graphql-specialist: GraphQL alternative to REST
Guide for creating robust, scalable, developer-friendly REST APIs following industry standards.
From the devsforge/marketplace README
Disclaimer: DevsForge Marketplace is an independent, community-developed open-source project. It is not affiliated with, endorsed by, or officially associated with Anthropic, PBC or any of its products (including Claude, Claude Code, or the Claude API). "Claude" and "Anthropic" are trademarks of Anthropic, PBC. This project is a third-party plugin built by the community to extend Claude Code functionality.
🚀 DevsForge Marketplace
The Ultimate Plugin Ecosystem for Claude Code
161 Enterprise-Grade Plugins | 93 AI Agents | 65 Commands | 3 Super Plugins
⚡ What's New in v1.2
✅ Plugin Compliance & QualityAll 161 plugins validated for Claude Code CLI Fixes Applied:
|
🏗️ Super Plugins (Advanced)Multi-component platforms with hooks & MCP servers Features:
|
✨ Why DevsForge Marketplace?
🎨Curated QualityEvery plugin manually reviewed & enterprise-tested |
⚡Production ReadyBattle-tested in real-world scenarios |
🔒Security FirstZero dependencies, fully audited code |
🚀Advanced FeaturesHooks, MCP servers, automation |
💯100% OriginalNo copycat plugins, pure innovation |
🎯 Quick Start
Installation
# 🔥 One command to rule them all
/plugin marketplace add https://github.com/devsforge/marketplace.git
# ✅ Verify installation
/plugin marketplace list
# 🎉 Expected: devsforge-marketplace (1.2.0) - 161 plugins available
Using Plugins
# 🔍 Browse available plugins
/plugin
# 📦 Install specific plugin
/plugin install ai-architect@devsforge-marketplace
# 🚀 Install super plugin (with hooks & MCP)
/plugin install enterprise-workspace@devsforge-marketplace
# 📋 Manage plugins
/plugin list # List installed
/plugin update ai-architect@devsforge-marketplace # Update plugin
/plugin remove debugger@devsforge-marketplace # Remove plugin
🎨 Featured Categories
🤖 AI & Machine Learning (12 plugins)
- ai-architect - ML optimization & AI system design
- ai-ethics-officer - Ethical AI governance
- vision-specialist - Computer vision & image processing
- data-scientist - Data analysis & BigQuery operations
- data-analyst - Analytics & business intelligence
🔒 Security & Compliance (15 plugins)
- enterprise-security-reviewer - B2B security assessments
- security-scanner - Vulnerability detection & remediation
- authentication-specialist - JWT, OAuth2, security patterns
- cors-security-expert - CORS configuration & best practices
- data-privacy-engineer - GDPR compliance & data protection
- compliance-automation-specialist - Regulatory automation
- legal-compliance-checker - Legal compliance validation
💻 Development & Code Quality (25 plugins)
- code-quality-expert - Code governance & security
- code-migrator - Legacy code modernization
- debugger - Advanced debugging methodologies
- web-dev - React, Next.js, NestJS, TypeScript
- python-expert - Advanced Python development
- database-expert ⚡ NEW - SQL optimization & query tuning
- docker-specialist ⚡ NEW - Container optimization
- git-workflow-expert ⚡ NEW - Advanced Git strategies
- rest-api-designer ⚡ NEW - REST API best practices
- graphql-specialist ⚡ NEW - GraphQL schema design
🔧 DevOps & Infrastructure (18 plugins)
- devops-automator - CI/CD & infrastructure automation
- deployment-engineer - Production deployment strategies
- cloud-architect - Multi-cloud architecture
- monitoring-observability-specialist - System monitoring
- sre-reliability-engineer - Site reliability engineering
- cost-optimizer - Cloud cost optimization
🧪 Testing & QA (10 plugins)
- testing-orchestrator - Test automation frameworks
- unit-test-generator - Automated test generation
- api-quality-assurance - API testing & validation
- performance-benchmarker - Performance testing
- test-writer-fixer - Test creation & maintenance
📝 Documentation & Knowledge (8 plugins)
- codebase-documenter - Comprehensive code documentation
- technical-writer-pro - Technical documentation
- api-docs-generator - OpenAPI/Swagger docs
- doc-generator - Auto-documentation generation
🎨 Design & UX (8 plugins)
- ui-designer - Beautiful, functional interfaces
- ui-ux-engineer - React/Vue/Angular components
- accessibility-architect - WCAG 2.1 AA compliance
- mobile-ux-optimizer - Mobile-first experiences
- ux-researcher - User research & journey maps
📊 Data & Analytics (7 plugins)
- data-analyst - Analytics methodologies
- data-scientist - SQL queries & data insights
- database-performance-optimizer - Database optimization
- sql-query-optimizer - Advanced SQL optimization
🏢 Enterprise & Business (12 plugins)
- software-architect - Scalable architecture design
- system-architect - Backend design & integration
- b2b-project-shipper - B2B project delivery
- customer-success-manager - Customer success ops
- technical-sales-engineer - Technical sales support
- pricing-packaging-specialist - Pricing strategies
🚀 Productivity & Automation (15 plugins)
- workflow-optimizer - Workflow optimization
- project-shipper - Launch & release management
- sprint-prioritizer - Sprint planning & prioritization
- experiment-tracker - Experiment tracking & analysis
- finance-tracker - Budget & cost management
⚡ Super Plugins - Advanced (3 plugins)
🏢 enterprise-workspace
Complete workspace management platform with hooks & MCP
Components:
- 3 Commands:
workspace-init,workspace-sync,workspace-audit - 2 Agents: workspace-architect, compliance-auditor
- 1 Hook: PostToolUse validation
- 1 MCP Server: workspace-state
- 1 Script: validate-workspace.sh
Features:
- ✅ Architecture governance
- ✅ Compliance tracking
- ✅ Automated validation
- ✅ State management
🤖 ai-studio-orchestrator
Advanced multi-agent coordination platform
Components:
- 3 Commands:
orchestrate-task,monitor-performance,optimize-workflow - 2 Agents: task-coordinator, performance-analyzer
- 1 Hook: PreToolUse logging
- 1 MCP Server: orchestrator
- 1 Script: task-logger.sh
Features:
- ✅ Task distribution
- ✅ Load balancing
- ✅ Performance analytics
- ✅ Real-time monitoring
🔧 devops-platform
Complete DevOps automation platform
Components:
- 3 Commands:
setup-pipeline,deploy-application,manage-infrastructure - 2 Agents: cicd-architect, infrastructure-engineer
- 1 Hook: PostToolUse config validation
- 1 MCP Server: devops-state
- 1 Script: validate-devops-config.sh
Features:
- ✅ CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI)
- ✅ Zero-downtime deployments
- ✅ Infrastructure as Code (Terraform, CloudFormation)
- ✅ Security scanning
📊 Marketplace Statistics
| Category | Count | Description |
|---|---|---|
| 🤖 Agents | 93 | AI-powered development assistants |
| ⚡ Commands | 65 | Instant productivity tools |
| 🚀 Super Plugins | 3 | Advanced multi-component platforms |
| Total | 161 | Production-ready plugins |
Quality Metrics
- ✅ Average Documentation: 250+ lines per plugin
- ✅ Code Examples: Real-world templates included
- ✅ Testing: Enterprise-grade validation
- ✅ Security: Zero external dependencies
- ✅ Maintenance: Regular updates & improvements
🏗️ Architecture
devsforge-marketplace/
├── .claude-plugin/
│ └── marketplace.json # 📋 Marketplace registry (161 plugins)
│
├── plugins/
│ ├── agents/ # 🤖 93 AI Agent Plugins
│ │ ├── ai-architect/
│ │ │ ├── .claude-plugin/
│ │ │ │ └── plugin.json
│ │ │ └── agents/
│ │ │ └── ai-engineer.md
│ │ ├── database-expert/ ⚡ NEW in v1.1
│ │ ├── docker-specialist/ ⚡ NEW in v1.1
│ │ ├── git-workflow-expert/ ⚡ NEW in v1.1
│ │ └── ... (90 more agents)
│ │
│ ├── commands/ # ⚡ 65 Command Plugins
│ │ ├── api-designer/
│ │ │ ├── .claude-plugin/
│ │ │ │ └── plugin.json
│ │ │ └── commands/
│ │ │ └── api-designer.md
│ │ ├── env-validator/ ⚡ NEW in v1.1
│ │ ├── import-organizer/ ⚡ NEW in v1.1
│ │ └── ... (62 more commands)
│ │
│ └── super/ # 🚀 3 Super Plugins
│ ├── enterprise-workspace/
│ │ ├── .claude-plugin/
│ │ │ └── plugin.json # With hooks & MCP
│ │ ├── commands/ # Multiple commands
│ │ ├── agents/ # Multiple agents
│ │ ├── scripts/ # Automation scripts
│ │ └── servers/ # MCP servers
│ ├── ai-studio-orchestrator/
│ └── devops-platform/
│
└── README.md # 📖 This file
🎓 Documentation
Plugin Installation Examples
# 🤖 AI & Machine Learning
/plugin install ai-architect@devsforge-marketplace
/plugin install data-scientist@devsforge-marketplace
/plugin install vision-specialist@devsforge-marketplace
# 💻 Development Tools
/plugin install web-dev@devsforge-marketplace
/plugin install python-expert@devsforge-marketplace
/plugin install debugger@devsforge-marketplace
# 🔒 Security & Compliance
/plugin install security-scanner@devsforge-marketplace
/plugin install authentication-specialist@devsforge-marketplace
/plugin install cors-security-expert@devsforge-marketplace
# 🔧 DevOps & Infrastructure
/plugin install devops-automator@devsforge-marketplace
/plugin install docker-specialist@devsforge-marketplace
/plugin install cloud-architect@devsforge-marketplace
# ⚡ Productivity Commands
/plugin install code-review@devsforge-marketplace
/plugin install fix-github-issue@devsforge-marketplace
/plugin install pr-creator@devsforge-marketplace
# 🚀 Super Plugins (Advanced)
/plugin install enterprise-workspace@devsforge-marketplace
/plugin install ai-studio-orchestrator@devsforge-marketplace
/plugin install devops-platform@devsforge-marketplace
Marketplace Management
# 📋 List installed marketplaces
/plugin marketplace list
# 🔄 Update marketplace
/plugin marketplace update devsforge-marketplace
# 🗑️ Remove marketplace
/plugin marketplace remove devsforge-marketplace
# 🔍 Search plugins
/plugin search "security"
/plugin search "api design"
# 📊 Show plugin details
/plugin info ai-architect@devsforge-marketplace
🛠️ Troubleshooting
❌ Marketplace Not Loading
Symptoms: Marketplace doesn't appear in /plugin marketplace list
Solutions:
- ✅ Verify
.claude-plugin/marketplace.jsonexists in repository root - ✅ Check JSON syntax:
claude plugin validate . - ✅ Ensure Git repository is accessible and cloned correctly
- ✅ Restart Claude Code CLI after adding marketplace
❌ Plugin Installation Failures
Symptoms: Error message "Plugin not found" or installation timeout
Solutions:
- ✅ Verify plugin source paths are correct:
./plugins/[type]/[name] - ✅ Ensure all required files exist:
.claude-plugin/plugin.json,commands/*.mdoragents/*.md - ✅ Check network connectivity for Git-based plugin sources
- ✅ Try explicit version:
/plugin install [name]@devsforge-marketplace@1.0.0
❌ Super Plugin Issues
Symptoms: Hooks not triggering or MCP server connection errors
Solutions:
- ✅ Verify
${CLAUDE_PLUGIN_ROOT}environment variable resolves correctly - ✅ Check script permissions:
chmod +xon Linux/Mac - ✅ Ensure Node.js is installed for MCP server JavaScript files
- ✅ Review Claude Code logs for hook execution errors
❌ Performance Issues
Symptoms: Slow marketplace loading or plugin installation
Solutions:
- ✅ Check internet connection speed (GitHub clone performance)
- ✅ Verify available disk space (minimum 50MB required)
- ✅ Close unnecessary applications to free system resources
- ✅ Use local path installation for faster access after initial clone
🤝 Contributing
We welcome contributions! Here's how you can help:
🎯 Contributing New Plugins
- 🍴 Fork the repository
- 📁 Create plugin structure in appropriate directory (
agents/,commands/, orsuper/) - 📝 Follow
plugin.jsonschema requirements - 📖 Add comprehensive documentation (200-700+ lines recommended)
- 🧪 Test thoroughly with Claude Code CLI
- 🚀 Submit pull request with detailed description
📋 Plugin Quality Standards
- ✅ Minimum 200 lines of documentation
- ✅ Real-world code examples and templates
- ✅ Phase-based methodologies
- ✅ Best practices and anti-patterns
- ✅ Quality metrics and KPIs
- ✅ Business impact analysis
💡 Contributing Ideas
- 💬 Open a GitHub Discussion with plugin proposal
- 📝 Describe use case and business value
- 💻 Provide examples of desired functionality
- 🗳️ Community votes on most valuable additions
🔒 Security & Trust
⚠️ Important Disclaimer
DevsForge Marketplace is an independent, community-driven project
- ❌ NOT affiliated with Anthropic or Claude
- ❌ NOT officially endorsed or connected to Anthropic
- ✅ Community maintained by open-source contributors
- ⚠️ Use at your own risk - review plugin code before production use
Security Measures
|
Our Practices:
|
Your Responsibilities:
|
📜 License
MIT License - See LICENSE for details
Copyright (c) 2025 DevsForge Community
🙏 Acknowledgments
Built with ❤️ by the DevsForge Community
Special thanks to:
- 🎨 Anthropic for Claude Code CLI platform
- 💻 All plugin contributors and testers
- 🏢 Enterprise users providing valuable feedback
- 🌟 Open source community for inspiration
🚀 Ready to supercharge your Claude Code experience?
Get Started Now • Browse Plugins • Contribute
DevsForge Marketplace v1.2 - The Ultimate Plugin Ecosystem for Claude Code
Details
- Marketplace
- devsforge/marketplace
- Source
- plugins/agents/rest-api-designer
- Author
- DevsForge Community
- Category
- Agents
- Keywords
- devsforge, agent, rest, api
- Listed since
- Apr 7, 2026
More from devsforge/marketplace
All 161- robots-txt-generatorv1.0.0
- schema-generatorv1.0.0
- security-auditorv1.0.0
- security-scannerv1.0.0
- serverless-engineerv1.0.0
- smart-commitv1.0.0
- software-architectv1.0.0
- sprint-prioritizerv1.0.0
- sql-formatterv1.0.0
- sql-query-optimizerv1.0.0
- sre-reliability-engineerv1.0.0
- strategic-plannerv1.0.0
- strategic-thinkerv1.0.0
- studio-coachv1.0.0
- studio-producerv1.0.0
- support-responderv1.0.0
- system-architectv1.0.0
- system-explorerv1.0.0
- technical-sales-engineerv1.0.0
- technical-writer-prov1.0.0
- test-generatorv1.0.0
- test-results-analyzerv1.0.0
- test-writer-fixerv1.0.0
- testing-orchestratorv1.0.0
Similar to rest-api-designer
More Backend & APIs
graphql-specialistdevsforge/marketplace79 starsGraphQL schema design and API optimization expert
api-designerdevsforge/marketplace79 starsDevsForge Enterprise API Design Architect delivering comprehensive API architecture methodologies, RESTful design excellence, GraphQL schema optimization, and m
do-apiTheBushidoCollective/han201 starsAPI engineering agents providing expertise in API design, contracts, and gateway patterns
api-integration-specialistananddtyagi/cc-marketplace689 starsUse this agent when you need to design and implement internal API architecture, developer experience, and API infrastructure for B2B applications. This agent sp
api-toolkitarmanzeroeight/fastagent-plugins29 starsAPI design toolkit for REST and GraphQL with endpoint design, versioning strategies, and OpenAPI documentation generation. Includes api architect agent for stra
api-architectrohitg00/awesome-claude-code-toolkit2.8K starsAPI design, documentation, and testing with OpenAPI spec generation