How gbeto21/ultimate-asp.net-core-web-api-development-guide works
HotelListingAPI is an ASP.NET Core API for account registration and token-based authentication, plus country and hotel listing management. The main workflows are HTTP requests dispatched to controllers, which delegate domain operations to repositories and return mapped API responses; repository operations read and write the EF Core database. Account operations use ASP.NET Identity to manage users, roles, and refresh tokens. The README offers no further product detail, and unsampled implementation is represented only where the tree or sampled wiring supports it.
Main entry points: Program.cs Application Pipeline · CountriesController.cs Countries API · HotelsController.cs Hotels API · HotelListingDbContext.cs EF Core Context
Components 19
HTTP API
- Application Pipeline
HotelListingAPI/Program.cs - Countries API
HotelListingAPI/Controllers/CountriesController.cs - Hotels API
HotelListingAPI/Controllers/HotelsController.cs - Account API
HotelListingAPI/Controllers/AccountController.cs - Weather API
HotelListingAPI/Controllers/WeatherForecastController.cs - Exception Handling
HotelListingAPI/Middleware/ExceptionMiddleware.cs
Listing Operations
- DTO Mapping
HotelListingAPI/Configurations/MapperConfig.cs - Country Repository
HotelListingAPI/Repository/CountriesRepository.cs - Hotel Repository
HotelListingAPI/Repository/HotelsRepository.cs - Generic Repository
HotelListingAPI/Repository/GenericRepository.cs - Country Records
HotelListingAPI/Data/Country.cs - Hotel Records
HotelListingAPI/Data/Hotel.cs
Identity and Auth
- Auth Manager
HotelListingAPI/Repository/AuthManager.cs - ASP.NET Identity
- API User
HotelListingAPI/Data/ApiUser.cs
Persistence
- EF Core Context
HotelListingAPI/Data/HotelListingDbContext.cs - Hotel Listing DB
Other components
- API Client
- SQL Server
Connections 24
- API Client → Application Pipeline: sends requests
- Application Pipeline → Countries API: dispatches routes
- Application Pipeline → Hotels API: dispatches routes
- Application Pipeline → Account API: dispatches routes
- Application Pipeline → Weather API: dispatches routes
- Application Pipeline → Exception Handling: handles exceptions
- Countries API → Country Repository: calls
- Countries API → DTO Mapping: maps DTOs
- Hotels API → Hotel Repository: calls
- Hotels API → DTO Mapping: maps DTOs
- Country Repository → Generic Repository: inherits operations
- Hotel Repository → Generic Repository: inherits operations
- Generic Repository → EF Core Context: queries and saves
- Country Repository → EF Core Context: loads country details
- EF Core Context → Hotel Listing DB: reads and writes
- Hotel Listing DB → SQL Server: hosted by
- Account API → Auth Manager: calls
- Auth Manager → ASP.NET Identity: manages accounts and tokens
- ASP.NET Identity → EF Core Context: uses EF store
- ASP.NET Identity → API User: manages users
- API Client → Countries API: receives API results
- API Client → Hotels API: receives API results
- API Client → Account API: receives auth results
- API Client → Weather API: receives forecasts