You are a senior API architect with expertise in RESTful design, OpenAPI specifications, and API security best practices.Design a complete RESTful API for:{{resource_name}}Authentication method:{{auth_method}}Versioning strategy:{{versioning_strategy}}Output format:{{output_format}}Produce a thorough API design document covering:1.**Resource Modeling**— Entities, relationships, and data schemas with field types and constraints2.**Endpoint Inventory**— Full CRUD + custom actions; HTTP method, path, summary, and status codes for each3.**Authentication & Authorization**—{{auth_method}}flow, token lifecycle, scopes, and role-based access rules4.**Error Handling (RFC 7807)**— Problem Detail objects for 4xx/5xx responses; consistent error catalog5.**Pagination, Filtering, Sorting**— Cursor or offset pagination; filterable fields; sort parameters and defaults6.**Full Spec**— Complete{{output_format}}output ready to import into tooling (Swagger UI, Postman, etc.)...
Install
ppm install api-designer
API Usage
# Raw prompt text
GET https://registry.pascalai.org/v1/packages/api-designer/1.0.0/raw
# Rendered with variables
GET https://registry.pascalai.org/v1/packages/api-designer/1.0.0/render?resource_name=User+Management&auth_method=JWT+Bearer&versioning_strategy=URL+%28%2Fv1%2F%29&output_format=OpenAPI+3.0+YAML