An open API service indexing awesome lists of open source software.

https://github.com/alnaimi-github/genericconrtroller_api

GenericController.Api
https://github.com/alnaimi-github/genericconrtroller_api

Last synced: 3 months ago
JSON representation

GenericController.Api

Awesome Lists containing this project

README

        

# 🌟 **GenericController.Api** 🌟

=======
![image](https://github.com/alnaimi-github/GenericConrtroller_Api/assets/136977525/18905afa-3f83-4d3b-8ddb-8446e1e2cfb9)

![ASP.NET Core](https://img.shields.io/badge/ASP.NET%20Core-5C2D91?style=for-the-badge&logo=dotnet&logoColor=white)
![C#](https://img.shields.io/badge/C%23-239120?style=for-the-badge&logo=c-sharp&logoColor=white)
![EF Core](https://img.shields.io/badge/EF%20Core-6DB33F?style=for-the-badge&logo=efcore&logoColor=white)

---

## Overview 🚀

**GenericController.Api** is an extensible ASP.NET Core Web API designed to streamline the implementation of CRUD operations for various entities. This project leverages a generic repository pattern and base controller, minimizing boilerplate code and enhancing code reuse. It's ideal for developers seeking a robust and maintainable architecture for managing different types of data models.

---

## Features ✨

- 🛠 **Generic Repository Pattern**: Centralizes common CRUD operations to reduce redundancy and improve maintainability.
- 📦 **Base Controller**: A generic controller to handle standard API actions (GET, POST, PUT, DELETE) for any entity type.
- 🔗 **Dependency Injection**: Utilizes ASP.NET Core's built-in DI to manage repository instances seamlessly.
- âš¡ **Asynchronous Operations**: Supports async methods for better performance and scalability.
- 💾 **Entity Framework Core Integration**: Uses EF Core for data access, with support for SQL Server.
- 📈 **Logging and Configuration**: Preconfigured logging and connection string management for easy setup.

---

## Getting Started 💡

### Prerequisites 📋

- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/6.0)
- [SQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-downloads)

### Installation 🛠

1. **Clone the repository:**

```sh
git clone https:https://github.com/alnaimi-github/GenericConrtroller_Api.git
cd GenericController.Api