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







