- You are an OpenAPI 3.1 specification generator.
- You are an expert in API design and OpenAPI specifications.
Core Instructions
You are an expert API designer specializing in creating OpenAPI 3.1 specifications. Your task is to generate complete, valid, and well-structured OpenAPI 3.1 documents that follow industry best practices.
Output Format Requirements
<output_requirements>
Always output valid OpenAPI 3.1 specifications in YAML or JSON format as requested by the user (default to YAML if not specified).
Ensure the specification is complete and self-contained.
When generating YAML, use proper indentation (2 spaces) and formatting, with special attention to YAML's sensitivity to whitespace.
When generating title of the OpenAPI spec, use a clear and descriptive title that reflects the API's purpose.
When generating commentary:
use markdown
follow this template structure:
```markdown
# 📋 API Overview
Brief description of what this API does and its main purpose.
🌐 Major Endpoints
GET /endpoint1 - Description
POST /endpoint2 - Description
PUT /endpoint3/{id} - Description
🤖 Schema Models
ModelName1 - Description of the model
ModelName2 - Description of the model
✨ Special Features & Considerations
Feature 1 description
Feature 2 description
Any important considerations
When an existing OpenAPI spec is provided:
use it as a base and only modify the necessary parts to meet the user's request
the generated commentary should only reflect the changes made to the existing spec, not a summary of the entire spec.
Ensure all three required fields (yamlSpec, yamlSpecTitle, commentary) are present in the structured output.
Endpoint Generation:
Comprehensive Coverage: Include all required endpoints based on the API's described purpose, data models, and operations implied by the specification.
Collection Endpoints: When a resource is plural or naturally represents a collection (e.g., transfers, users, transactions), automatically generate a corresponding list endpoint.
Pagination:
Required for All Collection Endpoints
All list or collection endpoints must implement pagination from the start, regardless of dataset size—even for small collections.
Pagination Parameters
Use standard query parameters:
limit — Number of items per page (e.g., ?limit=25)
offset — Number of items to skip (e.g., ?offset=50)
Response Metadata
Include pagination metadata in the response under meta.page:
Define webhooks when the API supports them
```yaml
webhooks:
newItem:
post:
requestBody:
description: "Information about the new item"
content:
application/json:
schema:
$ref: "#/components/schemas/Item"
responses:
'200':
description: "Webhook processed successfully"
```
You wouldn't expose a REST API without a gateway. What about Kafka?
Before we talk about an event gateway, it's worth grounding ourselves on what an event is. An event is simply a record of something that happened. In modern integration, there are
Warren Vella
# Local Previews and Agent-Driven Authoring for Your Konnect Dev Portal
What it is
The Konnect Dev Portal Toolkit is a free extension published by Kong Inc. on the Visual Studio Code Marketplace (ID konghq.vscode-konnect-dev-portal-toolkit) and on Open VSX.
Konnect Developer Portals are how teams publish API document
Adam DeHaven
# Enforce API Standards with Custom Linting in Kong Insomnia 13
To follow along, you’ll need: Insomnia 13 or later An Insomnia project with an API design document An OpenAPI 3.x specification Note: In Insomnia 13, custom linting supports Spectral rulesets using the top-level rules and extends properties. Custom
Juhi Singh
# Kafka in a DMZ: Protecting AWS MSK with Kong Event Gateway
The MSK exposure problem
Amazon MSK brokers live in private subnets by default. That's the right default. Kafka's protocol wasn't designed for untrusted networks — it has no concept of rate limiting, no built-in field-level encryption, and its ACL
Hugo Guerrero
# How to Set Up Prepaid Credits in Kong Konnect Metering & Billing
The core of this system rests on a foundational principle: currency-specific credit balances are never directly modified. Rather than a simple mutable counter, which is prone to race conditions and opaque manual adjustments, we utilize a comprehensi
Dan Temkin
# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy
Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are
Kong
# Moving from Probabilistic Reasoning to Deterministic Execution
Building Reliable GenAI Architectures
This is the second post in a series. For the first part, see Why We Need to Stop Prompt Hacking . Generative AI systems do not fail because models are weak. They fail because architectures are incomplete. On
Hugo Guerrero
# Why Your Kafka Event Streams Need an Event Gateway
You wouldn't expose a REST API without a gateway. What about Kafka?
Before we talk about an event gateway, it's worth grounding ourselves on what an event is. An event is simply a record of something that happened. In modern integration, there are
Warren Vella
# Local Previews and Agent-Driven Authoring for Your Konnect Dev Portal
What it is
The Konnect Dev Portal Toolkit is a free extension published by Kong Inc. on the Visual Studio Code Marketplace (ID konghq.vscode-konnect-dev-portal-toolkit) and on Open VSX.
Konnect Developer Portals are how teams publish API document
Adam DeHaven
# Enforce API Standards with Custom Linting in Kong Insomnia 13
To follow along, you’ll need: Insomnia 13 or later An Insomnia project with an API design document An OpenAPI 3.x specification Note: In Insomnia 13, custom linting supports Spectral rulesets using the top-level rules and extends properties. Custom
Juhi Singh
# Kafka in a DMZ: Protecting AWS MSK with Kong Event Gateway
The MSK exposure problem
Amazon MSK brokers live in private subnets by default. That's the right default. Kafka's protocol wasn't designed for untrusted networks — it has no concept of rate limiting, no built-in field-level encryption, and its ACL
Hugo Guerrero
# How to Set Up Prepaid Credits in Kong Konnect Metering & Billing
The core of this system rests on a foundational principle: currency-specific credit balances are never directly modified. Rather than a simple mutable counter, which is prone to race conditions and opaque manual adjustments, we utilize a comprehensi
Dan Temkin
# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy
Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are
Kong
# Moving from Probabilistic Reasoning to Deterministic Execution
Building Reliable GenAI Architectures
This is the second post in a series. For the first part, see Why We Need to Stop Prompt Hacking . Generative AI systems do not fail because models are weak. They fail because architectures are incomplete. On
Hugo Guerrero
# Why Your Kafka Event Streams Need an Event Gateway
You wouldn't expose a REST API without a gateway. What about Kafka?
Before we talk about an event gateway, it's worth grounding ourselves on what an event is. An event is simply a record of something that happened. In modern integration, there are
Warren Vella
# Local Previews and Agent-Driven Authoring for Your Konnect Dev Portal
What it is
The Konnect Dev Portal Toolkit is a free extension published by Kong Inc. on the Visual Studio Code Marketplace (ID konghq.vscode-konnect-dev-portal-toolkit) and on Open VSX.
Konnect Developer Portals are how teams publish API document
Adam DeHaven
# Enforce API Standards with Custom Linting in Kong Insomnia 13
To follow along, you’ll need: Insomnia 13 or later An Insomnia project with an API design document An OpenAPI 3.x specification Note: In Insomnia 13, custom linting supports Spectral rulesets using the top-level rules and extends properties. Custom
Juhi Singh
# Kafka in a DMZ: Protecting AWS MSK with Kong Event Gateway
The MSK exposure problem
Amazon MSK brokers live in private subnets by default. That's the right default. Kafka's protocol wasn't designed for untrusted networks — it has no concept of rate limiting, no built-in field-level encryption, and its ACL
Hugo Guerrero
# How to Set Up Prepaid Credits in Kong Konnect Metering & Billing
The core of this system rests on a foundational principle: currency-specific credit balances are never directly modified. Rather than a simple mutable counter, which is prone to race conditions and opaque manual adjustments, we utilize a comprehensi
Dan Temkin
# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy
Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are
Kong
# Moving from Probabilistic Reasoning to Deterministic Execution
Building Reliable GenAI Architectures
This is the second post in a series. For the first part, see Why We Need to Stop Prompt Hacking . Generative AI systems do not fail because models are weak. They fail because architectures are incomplete. On
Hugo Guerrero
## Ready to see Kong in action?
Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.