How sullaspqr/pizza works
Contoso is a small ASP.NET Core API with two capabilities: pizza catalog CRUD and generated weather forecasts. A client request enters the application configured in Program.cs, which maps controller endpoints. Pizza requests delegate to an in-memory service that stores Pizza records; weather requests generate forecast values directly in the controller. The sampled files show no persistent database or external service integration. The weather and pizza model links and controller calls are visible in the excerpts; no README documentation was provided.
Main entry points: Program.cs HTTP app · PizzaController.cs Pizza endpoints · PizzaService.cs Pizza service · WeatherForecastController.cs Forecast endpoint
Components 7
API runtime
- HTTP app
Program.cs
Pizza catalog
- Pizza endpoints
Controllers/PizzaController.cs - Pizza service
Services/PizzaService.cs - Pizza record
Models/Pizza.cs
Weather forecasts
- Forecast endpoint
Controllers/WeatherForecastController.cs - Forecast record
WeatherForecast.cs
Other components
- API client
Connections 7
- API client → HTTP app: sends HTTP
Program.cs - HTTP app → Pizza endpoints: maps controllers
Program.cs - HTTP app → Forecast endpoint: maps controllers
Program.cs - Pizza endpoints → Pizza service: calls CRUD
Controllers/PizzaController.cs - Pizza service → Pizza record: stores and returns
Services/PizzaService.cs - Pizza endpoints → Pizza record: accepts and returns
Controllers/PizzaController.cs - Forecast endpoint → Forecast record: creates forecasts
Controllers/WeatherForecastController.cs