How ccastro2050/proyecto_aplicacion_y_servicios_web works
This repository’s runnable product is a versioned ASP.NET Core product-inventory API backed by SQL Server. The main workflow is an HTTP client’s product request, request-body validation, controller delegation to business logic, and database access, followed by an HTTP response. The graph also preserves the documented interactive Swagger and diagnostic endpoint. Source excerpts show the controller, service, repository, and registration wiring; relationships to the database script are supported by the repository’s SQL implementation, but the database initialization details were not sampled.
Main entry points: ProductoController.cs Product Controller · Program.cs Application Setup · ServicioProducto.cs Product Service · RepositorioProductoSqlServer.cs SQL Repository
Components 14
HTTP API
- Product Controller
api_facturas/Controllers/ProductoController.cs - Create Request
api_facturas/Peticiones/ProductoCrear.cs - PUT Request
api_facturas/Peticiones/ProductoReemplazo.cs - PATCH Request
api_facturas/Peticiones/ProductoActualizar.cs
Product Logic
- Product Service
api_facturas/Servicios/ServicioProducto.cs - Not Found Error
api_facturas/Excepciones/NoEncontradoExcepcion.cs - Product Entity
api_facturas/Modelos/Producto.cs
Persistence
- Repository Contract
api_facturas/Repositorios/IRepositorioProducto.cs - SQL Repository
api_facturas/Repositorios/RepositorioProductoSqlServer.cs - Product Database
db/bdfacturas.sql
API Runtime
- Application Setup
api_facturas/Program.cs - Swagger UI
api_facturas/Program.cs - Diagnostic Route
api_facturas/Program.cs
Other components
- HTTP Client
Connections 19
- HTTP Client → Product Controller: sends requests
README.md - Application Setup → Product Controller: maps routes
api_facturas/Program.cs - Product Controller → Product Service: delegates operations
api_facturas/Controllers/ProductoController.cs - Product Controller → Create Request: validates POST
api_facturas/Controllers/ProductoController.cs - Product Controller → PUT Request: validates PUT
api_facturas/Controllers/ProductoController.cs - Product Controller → PATCH Request: validates PATCH
api_facturas/Controllers/ProductoController.cs - Application Setup → Create Request: configures 422
api_facturas/Program.cs - Product Controller → Product Entity: constructs entity
api_facturas/Controllers/ProductoController.cs - Product Service → Repository Contract: uses contract
api_facturas/Servicios/ServicioProducto.cs - Application Setup → SQL Repository: registers implementation
api_facturas/Program.cs - Application Setup → Product Service: registers service
api_facturas/Program.cs - SQL Repository → Repository Contract: implements contract
api_facturas/Repositorios/RepositorioProductoSqlServer.cs - SQL Repository → Product Database: queries product table
api_facturas/Repositorios/RepositorioProductoSqlServer.cs - Product Service → Not Found Error: throws when missing
api_facturas/Servicios/ServicioProducto.cs - Product Controller → Not Found Error: maps missing to 404
api_facturas/Controllers/ProductoController.cs - Application Setup → Swagger UI: enables UI
api_facturas/Program.cs - HTTP Client → Swagger UI: uses interactively
README.md - Application Setup → Diagnostic Route: registers route
api_facturas/Program.cs - HTTP Client → Diagnostic Route: checks status
README.md