{ "swagger": "2.0", "info": { "title": "API JAME", "description": "Documentación automática de la API", "version": "1.0.0" }, "host": "localhost:3001", "basePath": "/", "schemes": [ "http" ], "paths": { "/api/usuarios/listar": { "get": { "description": "", "parameters": [ { "name": "authorization", "in": "header", "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "500": { "description": "Internal Server Error" } } } }, "/api/usuarios/agregar": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombreCompleto": { "example": "any" }, "correoElectronico": { "example": "any" }, "usuario": { "example": "any" }, "contrasena": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/usuarios/eliminar/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/usuarios/editar/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombrecompleto": { "example": "any" }, "correoelectronico": { "example": "any" }, "usuario": { "example": "any" }, "contraseña": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/usuarios/actualizar/{id}": { "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombrecompleto": { "example": "any" }, "correoelectronico": { "example": "any" }, "usuario": { "example": "any" }, "contraseña": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/usuarios/login": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "correo": { "example": "any" }, "password": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, "500": { "description": "Internal Server Error" } } } }, "/api/mascota/listarMascotas": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/mascota/agregarMascota": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre": { "example": "any" }, "edad": { "example": "any" }, "raza": { "example": "any" }, "dueño": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/mascota/eliminarMascota/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/mascota/actualizarMascota/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre": { "example": "any" }, "edad": { "example": "any" }, "raza": { "example": "any" }, "dueño": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/mascota/editarMascota/{id}": { "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre": { "example": "any" }, "edad": { "example": "any" }, "raza": { "example": "any" }, "dueño": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/citas/listarCitas": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/citas/agregarCita": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "Usuario": { "example": "any" }, "Fecha": { "example": "any" }, "Motivo": { "example": "any" }, "Estado": { "example": "any" }, "Mascota": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/citas/eliminarCita/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/citas/actualizarCita/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "usuario": { "example": "any" }, "fecha": { "example": "any" }, "motivo": { "example": "any" }, "estado": { "example": "any" }, "mascota": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/citas/actualizarCitaUnica/{id}": { "patch": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/roles/listar": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/roles/agregar": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre_rol": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/roles/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre_rol": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/productos/listar": { "get": { "description": "", "responses": { "200": { "description": "OK" } } } }, "/api/productos/listar/{id}": { "get": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" } } } }, "/api/productos/agregar": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre_producto": { "example": "any" }, "descripcion": { "example": "any" }, "precio": { "example": "any" }, "stock": { "example": "any" } } } } ], "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/productos/eliminar/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/productos/actualizar/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre_producto": { "example": "any" }, "descripcion": { "example": "any" }, "precio": { "example": "any" }, "stock": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/compras/listar": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/compras/agregar": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "ID_Compra": { "example": "any" }, "Fecha": { "example": "any" }, "Cantidad": { "example": "any" }, "Descripción": { "example": "any" }, "MetodoPago": { "example": "any" }, "NumeroFactura": { "example": "any" }, "PrecioUnitario": { "example": "any" }, "Precio_Total": { "example": "any" }, "ID_producto": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/compras/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "NumeroFactura": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/pedidos/listarPedidos": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/pedidos/agregarPedido": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "id_usuario": { "example": "any" }, "fecha": { "example": "any" }, "metodoPago": { "example": "any" }, "descripcion": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/pedidos/eliminarPedido/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/pedidos/actualizarPedido/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "id_usuario": { "example": "any" }, "fecha": { "example": "any" }, "metodoPago": { "example": "any" }, "descripcion": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/categorias/listar/": { "get": { "description": "", "responses": { "200": { "description": "OK" }, "500": { "description": "Internal Server Error" } } } }, "/api/categorias/agregar/": { "post": { "description": "", "parameters": [ { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre_categoria": { "example": "any" }, "descripcion_categoria": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "500": { "description": "Internal Server Error" } } } }, "/api/categorias/actualizar/{id}": { "put": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "schema": { "type": "object", "properties": { "nombre_categoria": { "example": "any" }, "descripcion_categoria": { "example": "any" } } } } ], "responses": { "200": { "description": "OK" }, "400": { "description": "Bad Request" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } }, "/api/categorias/eliminar/{id}": { "delete": { "description": "", "parameters": [ { "name": "id", "in": "path", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" }, "500": { "description": "Internal Server Error" } } } } } }