Skip to main content
Glama

generate_examples

Generate API call examples in multiple formats like JSON, cURL, Python, and JavaScript based on OpenAPI specifications to help developers understand and test API endpoints.

Instructions

根据 OpenAPI 规范生成各种格式的 API 调用示例

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
example_strategyNo示例生成策略realistic
formatsNo生成的示例格式,默认生成所有格式
include_authNo是否包含认证信息
methodYesHTTP 方法,例如 GET, POST, PUT, DELETE
pathYes接口路径,例如 /api/v1/users
server_urlNo服务器基础 URL,默认使用 OpenAPI 规范中的服务器 URL

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jason-chang/fastapi-openapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server