https://github.com/iamviplavkr/policy-management-api
ASP.NET Web API project for Insurance Policy Management, built during internship at Shriram Insight. Uses SQL Server stored procedures, soft delete, and audit trails.
https://github.com/iamviplavkr/policy-management-api
api csharp dotnet sqlserver swagger
Last synced: 9 months ago
JSON representation
ASP.NET Web API project for Insurance Policy Management, built during internship at Shriram Insight. Uses SQL Server stored procedures, soft delete, and audit trails.
- Host: GitHub
- URL: https://github.com/iamviplavkr/policy-management-api
- Owner: iamviplavkr
- License: mit
- Created: 2025-07-22T08:32:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-22T14:13:44.000Z (11 months ago)
- Last Synced: 2025-10-04T11:42:31.897Z (9 months ago)
- Topics: api, csharp, dotnet, sqlserver, swagger
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ShriramInsight Policy API
A **.NET 8 Web API** developed during my internship at **Shriram Insight Share Brokers**.
This project provides a secure and scalable **Policy Management API** using **C#, SQL Server, and ADO.NET** with stored procedures.
---
## 🚀 Features
✅ RESTful API using ASP.NET Core
✅ CRUD Operations via **Stored Procedures** (No Entity Framework)
✅ **Soft Delete** Implementation using `IsActive` flag
✅ **Audit Trail** with `CreatedBy`, `CreatedWhen`, `UpdatedBy`, `UpdatedWhen` fields
✅ SQL Server database with optimized indexes
✅ Secure connection strings via `appsettings.json`
✅ Modular architecture with separate controllers for each table
---
## 🛠️ Tech Stack
- **Backend**: ASP.NET Core 8 Web API
- **Database**: Microsoft SQL Server
- **ORM**: ADO.NET (Stored Procedure Based)
- **CI/CD**: GitHub Actions
- **Version Control**: Git & GitHub
---
## 📌 Key API Endpoints
| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/api/TblGiPolicyBook` | Fetch all active policies |
| POST | `/api/TblGiPolicyBook` | Insert a new policy |
| PUT | `/api/TblGiPolicyBook/{orderNo}` | Update existing policy details |
| DELETE | `/api/TblGiPolicyBook/{orderNo}` | Soft delete a policy |
---
## ▶️ How to Run Locally
1️⃣ Clone the repository
```bash
git clone https://github.com//PolicyManagementAPI.git
cd PolicyManagementAPI/src/ShriramInsightAPI
```
2️⃣ Update `appsettings.json` with your SQL Server connection string
3️⃣ Run the API
```bash
dotnet restore
dotnet run
```
---
## ⭐ If you like this project, consider giving it a star!
**1. Other Supporting Files**
- **.gitignore** → Use default for .NET projects (generated by GitHub)
- **LICENSE** → Use MIT License
- **CONTRIBUTING.md** → Simple guidelines for contribution
- **docs/** → Put all screenshots & internship report
---
**2. Push Everything to GitHub**
Once your repo is ready locally:
```bash
# Initialize git
git init
# Add remote
git remote add origin https://github.com//PolicyManagementAPI.git
# Stage & commit
git add .
git commit -m "Initial commit - Policy Management API"
# Push to GitHub
git branch -M main
git push -u origin main
```