A comprehensive RESTful API for managing garage operations, built with ASP.NET Core.
Garage API is a robust backend solution for automotive service centers. It handles:
- Customer management
- Vehicle tracking
- Service record maintenance
All managed through a secure and performant REST API built on modern technologies.
- ASP.NET Core 9.0 – High-performance web framework
- Entity Framework Core – ORM for database operations
- SQL Server – Primary data store
- Redis – Distributed caching
- JWT Authentication – Secure API access
- Swagger / OpenAPI – Auto-generated API documentation
- FluentValidation – Clean and expressive input validation
- AutoMapper – Efficient object-to-object mapping
- Serilog – Structured logging and diagnostics
- Feature Management – Toggle and roll out features safely
Follows a clean architecture approach:
- Core: Domain entities & interfaces
- Infrastructure: Data access and integrations
- Application: Business logic and services
- API: Exposes REST endpoints and handles HTTP requests
POST /api/v1/Auth/register– Register a new userPOST /api/v1/Auth/login– Authenticate and receive JWT token
GET /api/v1/Customers– Get all customersGET /api/v1/Customers/{id}– Get customer by IDPOST /api/v1/Customers– Create a new customerPUT /api/v1/Customers/{id}– Update customerDELETE /api/v1/Customers/{id}– Delete customer
GET /api/v1/Vehicles– Get all vehiclesGET /api/v1/Vehicles/{id}– Get vehicle by IDPOST /api/v1/Vehicles– Create a new vehiclePUT /api/v1/Vehicles/{id}– Update vehicleDELETE /api/v1/Vehicles/{id}– Delete vehicle
GET /api/v1/ServiceRecords– Get all service recordsGET /api/v1/ServiceRecords/{id}– Get service record by IDPOST /api/v1/ServiceRecords– Create a new service recordPUT /api/v1/ServiceRecords/{id}– Update service recordDELETE /api/v1/ServiceRecords/{id}– Delete service record
- JWT authentication with refresh tokens
- Password hashing via ASP.NET Core Identity
- Role-based authorization
- API rate limiting
- HTTPS enforcement
- CORS policy setup
- Input validation with FluentValidation
- .NET 9.0 SDK
- SQL Server
- Redis (optional for caching)
API
Vehicle Management
Delete Car
Return Car
Update Car
Users
Register
Log in
# Clone the repository
git clone https://github.com/EliezerKibet/garage-api.git
cd garage-api







