api-design-assistant

Solid

Design and review APIs with suggestions for endpoints, parameters, return types, and best practices. Use when designing new APIs from requirements, reviewing existing API designs, generating API documentation, or getting implementation guidance. Supports REST APIs with focus on endpoint structure, request/response schemas, authentication, pagination, filtering, versioning, and OpenAPI specifications. Triggers when users ask to design, review, document, or improve APIs.

API & Backend 160 stars 17 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# API Design Assistant ## Overview Assist with designing well-structured, RESTful APIs by suggesting endpoints, parameters, return types, and best practices. Generate OpenAPI specifications and provide implementation guidance. ## Workflow ### 1. Understand Requirements When designing a new API or reviewing an existing one, first understand: **For new API design:** - What is the domain/purpose of the API? - What resources need to be exposed? (users, products, orders, etc.) - What operations are needed? (create, read, update, delete, custom actions) - Who are the consumers? (web app, mobile app, third-party integrations) - Are there specific requirements? (authentication, rate limiting, versioning) **For API review:** - What are the existing endpoints? - What issues or improvements are needed? - Are there consistency problems? - Are best practices being followed? ### 2. Design or Review API Structure Follow these steps based on the use case: #### Designing New APIs **Step 1: Identify Resources** Map domain concepts to API resources: - User management → `/users` - Product catalog → `/products` - Order processing → `/orders` - User's orders → `/users/{userId}/orders` **Step 2: Define Endpoints** For each resource, determine needed operations: ``` # Users resource GET /users # List users POST /users # Create user GET /users/{id} # Get specific user PUT /users/{id} # Replace user PATCH /users/{id} # Update...

Details

Author
ArabelaTso
Repository
ArabelaTso/Skills-4-SE
Created
6 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category