apidog
БесплатноБез исполняемых скриптовНе проверенApidog API development platform documentation - API design, testing, mocking, and documentation
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Apidog Skill
Comprehensive assistance with Apidog - an all-in-one API development platform for designing, testing, mocking, and documenting APIs.
When to Use This Skill
This skill should be triggered when:
- Designing RESTful APIs or defining endpoints (OpenAPI/Swagger specs)
- Creating API test scenarios and automated testing workflows
- Setting up API mocking for frontend development or testing
- Migrating from Postman, Insomnia, or other API tools
- Working with API documentation generation and sharing
- Debugging API requests and responses
- Managing environments and variables in API workflows
- Writing pre/post processors or test scripts
- Implementing API security schemes (OAuth, API keys, JWT)
- Generating code from API specifications
- Working with schemas and data models (JSON Schema)
- Database operations in API testing (MySQL, MongoDB, Redis)
Quick Reference
Basic API Endpoint Design
{
"method": "POST",
"path": "/api/users",
"parameters": {
"body": {
"type": "object",
"properties": {
"name": { "type": "string" },
"email": { "type": "string", "format": "email" }
},
"required": ["name", "email"]
}
},
"responses": {
"201": {
"description": "User created",
"body": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"email": { "type": "string" }
}
}
}
}
}
Using Variables in Requests
// Environment variables
{{base_url}}/api/users/{{user_id}}
// Dynamic values
{
"timestamp": "{{$timestamp}}",
"uuid": "{{$guid}}",
"random_email": "{{$randomEmail}}",
"random_int": "{{$randomInt}}"
}
Post-Processor Script for Extracting Data
// Extract token from response
const response = pm.response.json();
pm.environment.set("auth_token", response.data.token);
// Extract user ID
pm.environment.set("user_id", response.data.user.id);
// Assert response status
pm.test("Status is 200", function() {
pm.response.to.have.status(200);
});
Basic Assertion Examples
// Status code assertion
pm.test("Status code is 200", function() {
pm.response.to.have.status(200);
});
// Response body validation
pm.test("Response has user data", function() {
const jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('user');
pm.expect(jsonData.user).to.have.property('email');
});
// Response time check
pm.test("Response time is less than 500ms", function() {
pm.expect(pm.response.responseTime).to.be.below(500);
});
Setting Up Mock Data
// Smart Mock - Automatically generates data based on field names
{
"id": "@integer(1, 1000)",
"name": "@name",
"email": "@email",
"avatar": "@image('200x200')",
"created_at": "@datetime"
}
// Custom Mock with conditions
{
"status": "@pick(['active', 'pending', 'disabled'])",
"age": "@integer(18, 65)",
"balance": "@float(0, 10000, 2, 2)"
}
Pre-Processor Script for Dynamic Headers
// Generate timestamp-based signature
const timestamp = Date.now();
const signature = CryptoJS.MD5(timestamp + "secret_key").toString();
pm.request.headers.add({
key: "X-Timestamp",
value: timestamp.toString()
});
pm.request.headers.add({
key: "X-Signature",
value: signature
});
Test Scenario with Data Passing
// Step 1: Login and save token
// POST /api/login
pm.test("Login successful", function() {
const response = pm.response.json();
pm.environment.set("token", response.access_token);
});
// Step 2: Use token in next request
// GET /api/profile
// Headers: Authorization: Bearer {{token}}
// Step 3: Extract and use profile data
pm.test("Profile fetched", function() {
const profile = pm.response.json();
pm.environment.set("user_name", profile.name);
});
Database Operation in Tests
// MySQL query in pre-processor
const db = require('db');
const result = db.query('SELECT * FROM users WHERE email = ?', [pm.environment.get('email')]);
pm.environment.set('user_id', result[0].id);
Schema Composition (oneOf, allOf, anyOf)
{
"oneOf": [
{
"type": "object",
"properties": {
"type": { "const": "credit_card" },
"card_number": { "type": "string" }
}
},
{
"type": "object",
"properties": {
"type": { "const": "bank_account" },
"account_number": { "type": "string" }
}
}
]
}
Security Scheme Configuration
{
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
},
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
}
}
Key Concepts
Design-First vs Request-First Mode
- Design-First: Define API specifications first, then implement and test
- Request-First: Se
Установить apidog в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл apidog?
Apidog API development platform documentation - API design, testing, mocking, and documentation
Как установить скилл apidog?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл apidog запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic