How enmanuelbrosa/parcial_p4_luisenmanuel works
This is a small ASP.NET Core API for doubling an integer and retaining the result as a timestamped record. A client posts a number; the controller computes the result and asks the service to save the record. Clients can also retrieve one record by ID or list the history. The service initializes and queries a SQLite table. Program.cs wires the service and controller endpoints and exposes OpenAPI/Scalar references. Relationships shown are limited to calls and database operations visible in the excerpts.
Main entry points: NumberController.cs Number Controller · NumbersService.cs Numbers Service · Program.cs Application Host · NumberRecord.cs Number Record
Components 7
HTTP API
- Number Controller
Controller/NumberController.cs - API References
Program.cs
Number Logic
- Number Record
Models/NumberRecord.cs
Persistence
- Numbers Service
Servicios/NumbersService.cs - SQLite Database
Runtime
- Application Host
Program.cs
Other components
- API Client
Connections 8
- API Client → Number Controller: sends requests
Controller/NumberController.cs - Number Controller → Number Record: creates record
Controller/NumberController.cs - Number Controller → Numbers Service: saves and queries
Controller/NumberController.cs - Numbers Service → Number Record: maps records
Servicios/NumbersService.cs - Numbers Service → SQLite Database: reads and writes
Servicios/NumbersService.cs - Application Host → Numbers Service: initializes
Program.cs - Application Host → API References: maps references
Program.cs - Number Controller → API Client: returns results
Controller/NumberController.cs