{ "openapi": "3.0.1", "info": { "title": "api", "version": "1.0" }, "paths": { "/api/camisetafut": { "get": { "tags": [ "camisetafut" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Producto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Producto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Producto" } } } } } } }, "post": { "tags": [ "camisetafut" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Producto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Producto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Producto" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/camisetafut/{id}": { "get": { "tags": [ "camisetafut" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Producto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Producto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Producto" } } } } } }, "put": { "tags": [ "camisetafut" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Producto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Producto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Producto" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "camisetafut" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Categoria": { "get": { "tags": [ "Categoria" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Categoria" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Categoria" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Categoria" } } } } } } }, "post": { "tags": [ "Categoria" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Categoria" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Categoria" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Categoria" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Categoria/{id}": { "put": { "tags": [ "Categoria" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Categoria" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Categoria" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Categoria" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Categoria" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Cliente": { "get": { "tags": [ "Cliente" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Cliente" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Cliente" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Cliente" } } } } } } }, "post": { "tags": [ "Cliente" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Cliente" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Cliente" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Cliente" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Cliente/{cedula}": { "put": { "tags": [ "Cliente" ], "parameters": [ { "name": "cedula", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Cliente" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Cliente" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Cliente" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Cliente" ], "parameters": [ { "name": "cedula", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/DetalleFactura": { "get": { "tags": [ "DetalleFactura" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DetalleFactura" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DetalleFactura" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DetalleFactura" } } } } } } }, "post": { "tags": [ "DetalleFactura" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/DetalleFactura/{id}": { "get": { "tags": [ "DetalleFactura" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } } } } } }, "put": { "tags": [ "DetalleFactura" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/DetalleFactura" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "DetalleFactura" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Factura": { "get": { "tags": [ "Factura" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Factura" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Factura" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Factura" } } } } } } }, "post": { "tags": [ "Factura" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Factura" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Factura" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Factura" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Factura/{id}": { "get": { "tags": [ "Factura" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Factura" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Factura" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Factura" } } } } } }, "put": { "tags": [ "Factura" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Factura" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Factura" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Factura" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Factura" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Pedido": { "get": { "tags": [ "Pedido" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pedido" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pedido" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pedido" } } } } } } }, "post": { "tags": [ "Pedido" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pedido" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Pedido" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Pedido" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Pedido/{id}": { "get": { "tags": [ "Pedido" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Pedido" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Pedido" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Pedido" } } } } } }, "put": { "tags": [ "Pedido" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pedido" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Pedido" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Pedido" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Pedido" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "Categoria": { "type": "object", "properties": { "idCategoria": { "type": "integer", "format": "int32" }, "cateNombre": { "type": "string", "nullable": true }, "cateDescripcion": { "type": "string", "nullable": true } }, "additionalProperties": false }, "Cliente": { "type": "object", "properties": { "cliCedula": { "type": "string", "nullable": true }, "cliNombre": { "type": "string", "nullable": true }, "cliApellido": { "type": "string", "nullable": true }, "cliTelefono": { "type": "string", "nullable": true }, "cliCorreo": { "type": "string", "nullable": true }, "cliClaveHash": { "type": "string", "nullable": true }, "cliSalt": { "type": "string", "nullable": true }, "cliRol": { "type": "integer", "format": "int32" }, "cliActivo": { "type": "boolean" } }, "additionalProperties": false }, "DetalleFactura": { "type": "object", "properties": { "idDetalle": { "type": "integer", "format": "int32" }, "idFactura": { "type": "integer", "format": "int32" }, "idProducto": { "type": "integer", "format": "int32" }, "cantidad": { "type": "integer", "format": "int32" }, "precioUnitario": { "type": "number", "format": "float" } }, "additionalProperties": false }, "Factura": { "type": "object", "properties": { "idFactura": { "type": "integer", "format": "int32" }, "idPedido": { "type": "integer", "format": "int32" }, "cliCedula": { "type": "string", "nullable": true }, "direccion": { "type": "string", "nullable": true }, "metodoPago": { "type": "string", "nullable": true }, "fecha": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "Pedido": { "type": "object", "properties": { "idPedido": { "type": "integer", "format": "int32" }, "cliCedula": { "type": "string", "nullable": true }, "direccion": { "type": "string", "nullable": true }, "metodoPago": { "type": "string", "nullable": true }, "fecha": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "Producto": { "type": "object", "properties": { "idProducto": { "type": "integer", "format": "int32" }, "prodCategoria": { "type": "integer", "format": "int32", "nullable": true }, "prodNombre": { "type": "string", "nullable": true }, "prodDescripcion": { "type": "string", "nullable": true }, "prodPrecio": { "type": "number", "format": "double", "nullable": true }, "prodStock": { "type": "integer", "format": "int32", "nullable": true }, "prodProveedor": { "type": "string", "nullable": true }, "prodImagenUrl": { "type": "string", "nullable": true }, "prodTalla": { "type": "string", "nullable": true }, "prodEquipo": { "type": "string", "nullable": true } }, "additionalProperties": false } } } }