How joelalvesoliver/restaurante-api works
This repository is a small ASP.NET Core restaurant API with example endpoints for users, menu and orders, plus server-side file management and JSON serialization demonstrations. The main user workflow is registering or logging in, looking up users, and receiving a JWT on successful authentication; a separate workflow uploads, lists, downloads, or removes files. User data and menu data are held in in-memory services. The sampled menu controller returns placeholder text and does not call the menu repository. README content is absent, and some runtime wiring and file-service code were not sampled.
Main entry points: UsuarioController.cs User Endpoints · BancoDadosService.cs User Service · PratoRepository.cs Dish Repository · ArquivosController.cs File Endpoints
Components 16
HTTP API
- User Endpoints
Restaurante.Api/Controllers/UsuarioController.cs - Menu Endpoints
Restaurante.Api/Controllers/CardapioController.cs - Order Examples
Restaurante.Api/Controllers/PedidosController.cs - JSON Examples
Restaurante.Api/Controllers/JsonSoftExemplosController.cs - File Endpoints
Restaurante.Api/Controllers/ArquivosController.cs
Users and Menu
- User DTOs
Restaurante.Api/DTOs - User Service
SimuladorBancoDados/Service/BancoDadosService.cs - User Entity
SimuladorBancoDados/Entidade/Usuario.cs - Dish Entity
SimuladorBancoDados/Entidade/Prato.cs - JWT Settings
File Management
- File Service
Restaurante.Api/Services/ArquivoService.cs - Server Files
In-Memory Data
- User List
SimuladorBancoDados/Service/BancoDadosService.cs - Dish Repository
SimuladorBancoDados/Service/PratoRepository.cs - Dish Contract
SimuladorBancoDados/Interfaces/IPratoRepository.cs
Other components
- API Client
Connections 14
- API Client → User Endpoints: sends requests
- API Client → Menu Endpoints: sends requests
- API Client → Order Examples: sends requests
- API Client → JSON Examples: sends requests
- API Client → File Endpoints: sends requests
- User Endpoints → User Service: calls
- User Endpoints → User DTOs: maps data
- User Service → User List: reads and writes
- User Service → User Entity: creates and maps
- User Endpoints → JWT Settings: reads settings
- Dish Repository → Dish Contract: implements
- Dish Repository → Dish Entity: stores
- File Endpoints → File Service: calls
- File Service → Server Files: reads and writes