How marinspedro/fiap works
FIAP Cloud Games is an ASP.NET Core modular-monolith API for user identity and authentication, game catalog management, promotions, and users’ game libraries. A typical acquisition request enters through the Library API, checks the current user and game through module contracts, obtains a promotional quote, and records the acquisition. The README documents separate module boundaries and a shared physical PostgreSQL database. Source excerpts confirm the API host and key controller/service calls; unsampled internals are represented only where the README supports them.
Main entry points: Program.cs API host · AcquireGameService.cs Game acquisition · LoginService.cs Identity services · CreateGameService.cs Catalog services
Components 16
HTTP API
- API host
src/Api/FiapCloudGames.Api/Program.cs
Identity
- Identity endpoints
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Users/UsersController.cs - Login endpoint
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Authentication/Login/AuthenticationController.cs - Identity services
src/Modules/Identity/FiapCloudGames.Identity.Application/Features/Authentication/Login/LoginService.cs
Catalog
- Game endpoints
src/Modules/Catalog/FiapCloudGames.Catalog.Presentation/Features/Games/GamesController.cs - Catalog services
src/Modules/Catalog/FiapCloudGames.Catalog.Application/Features/Games/CreateGame/CreateGameService.cs
Promotions and Library
- Promotion endpoints
src/Modules/Promotions/FiapCloudGames.Promotions.Presentation/Features/Promotions/PromotionsController.cs - Promotion services
src/Modules/Promotions/FiapCloudGames.Promotions.Application/Features/Pricing/GetPromotionalPrice/GetPromotionalPriceService.cs - Library endpoints
src/Modules/Library/FiapCloudGames.Library.Presentation/Features/UserLibrary/LibraryController.cs - Game acquisition
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs
Persistence
- Identity persistence
src/Modules/Identity/FiapCloudGames.Identity.Infrastructure/Persistence/IdentityDbContext.cs - Catalog persistence
src/Modules/Catalog/FiapCloudGames.Catalog.Infrastructure/Persistence/CatalogDbContext.cs - Promotion persistence
src/Modules/Promotions/FiapCloudGames.Promotions.Infrastructure/Persistence/PromotionsDbContext.cs - Library persistence
src/Modules/Library/FiapCloudGames.Library.Infrastructure/Persistence/LibraryDbContext.cs - PostgreSQL
Other components
- API client
Connections 21
- API client → API host: sends HTTP
README.md - API host → Identity endpoints: hosts endpoints
src/Api/FiapCloudGames.Api/Program.cs - API host → Game endpoints: hosts endpoints
src/Api/FiapCloudGames.Api/Program.cs - API host → Promotion endpoints: hosts endpoints
src/Api/FiapCloudGames.Api/Program.cs - API host → Library endpoints: hosts endpoints
src/Api/FiapCloudGames.Api/Program.cs - Login endpoint → Identity services: calls
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Authentication/Login/AuthenticationController.cs - Identity endpoints → Identity services: calls
src/Modules/Identity/FiapCloudGames.Identity.Presentation/Features/Users/UsersController.cs - Game endpoints → Catalog services: calls
src/Modules/Catalog/FiapCloudGames.Catalog.Presentation/Features/Games/GamesController.cs - Promotion endpoints → Promotion services: calls
src/Modules/Promotions/FiapCloudGames.Promotions.Presentation/Features/Promotions/PromotionsController.cs - Library endpoints → Game acquisition: calls
src/Modules/Library/FiapCloudGames.Library.Presentation/Features/UserLibrary/LibraryController.cs - Game acquisition → Identity services: checks user
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs - Game acquisition → Catalog services: checks game
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs - Game acquisition → Promotion services: gets quote
src/Modules/Library/FiapCloudGames.Library.Application/Features/UserLibrary/AcquireGame/AcquireGameService.cs - Identity services → Identity persistence: uses persistence
- Catalog services → Catalog persistence: uses persistence
- Promotion services → Promotion persistence: uses persistence
- Game acquisition → Library persistence: saves acquisition
- Identity persistence → PostgreSQL: shares database
README.md - Catalog persistence → PostgreSQL: shares database
README.md - Promotion persistence → PostgreSQL: shares database
README.md - Library persistence → PostgreSQL: shares database
README.md