Generar snippet de un endpoint
generate_snippetCreates ready-to-use curl, JavaScript fetch, or Python requests snippets for an API endpoint, identified by operationId or method+path, with API key placeholders.
Instructions
Devuelve un snippet de código listo para usar (curl, JavaScript fetch o Python requests) para un endpoint, idéntico al de la web. Identificá el endpoint por operationId o por method+path. Los valores de API Key son placeholders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | Yes | Lenguaje del snippet. | |
| path | No | Path relativo, ej. '/products'. | |
| method | No | Método HTTP. Usar junto con path. | |
| version | No | Versión de la API a consultar. Default "v2" (la doc canónica y recomendada). Usá "v1" SOLO para integraciones legadas que siguen en /api/v1. | |
| operationId | No | Ej. 'v2-products-create'. |