{ "swagger": "2.0", "info": { "title": "Api de personajes y cafes", "description": "Esta es una api de pruebas", "version": "1.0.0" }, "host": "localhost:2026", "basePath": "/api", "schemes": [ "http" ], "paths": { "/productos": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre": { "example": "any" }, "precio": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "500": { "description": "Internal Server Error" } } } }, "/productos/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "202": { "description": "Accepted" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "202": { "description": "Accepted" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "202": { "description": "Accepted" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/personajes": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } }, "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre": { "example": "any" }, "nombreReal": { "example": "any" }, "poder": { "example": "any" }, "universo": { "example": "any" }, "equipo": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "500": { "description": "Internal Server Error" } } } }, "/personajes/{id}": { "post": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "idCafe": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "500": { "description": "Internal Server Error" } } }, "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "202": { "description": "Accepted" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "202": { "description": "Accepted" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "202": { "description": "Accepted" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } } } }