{ "openapi": "3.0.0", "info": { "title": "API de Usuarios", "version": "1.0.0" }, "servers": [ { "url": "http://localhost:3000" } ], "paths": { "/usuarios": { "get": { "summary": "Obtener un Usuario", "description": "Devuelve un usuario", "x-code-samples": [ { "lang": "cURL", "source": "curl -X GET \"localhost:3000/usuarios\" -H \"accept: application/json\"\n" }, { "lang": "javascript", "source": "fetch(\"localhost:3000/usuarios\", {\n method: \"GET\",\n headers: { \"accept\": \"application/json\" }\n}).then(response => response.json())\n .then(data => console.log(data));\n" } ], "parameters": [ { "in": "query", "name": "Id", "description": "ID del usuario", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "description": "Regresa un usuario", "content": { "application/json": { "schema": { "type": "object", "properties": { "Id": { "type": "integer" }, "Nombre": { "type": "string" }, "Apellido": { "type": "string" }, "Telefono": { "type": "string" } } } } } } } } } }, "components": {}, "tags": [] }