This Banking System API enables you to create Checking and Savings accounts with their own logic with interest and overdrafts
- Navigate to the src/Presentation/WebAPI
- Find the "Connected Services" option
- Right-click it and choose "Manage Connected Services"
- On the left panel go to "Connected Services"
- Click on the plus sign in the upper right corner
- Search for "SQL Server Express LocalDB (Local)" dependency and choose it
- For the "Connection string name" option write "ConnectionStrings:BankingSystemContext"
- Click Next then Finish
- Navigate to the "Persistence" folder
cd .\Persistence- Add new migration with name "BankingSystem"
dotnet ef migrations add BankingSystem --context BankingSystemContext --startup-project ..\WebAPI- Update the SQL Server database using the migration
dotnet ef database update --context BankingSystemContext --startup-project ..\WebAPI- Now you can run the project using the debugger's http option or run normally!
You can Access the Swagger UI at: http://localhost:5139/swagger/index.html
POST /api/accounts/checking
GET /api/accounts/checking
DELETE /api/accounts/checking/{id}
POST /api/accounts/savings
GET /api/accounts/savings
DELETE /api/accounts/savings/{id}
POST /api/accounts/deposit
POST /api/accounts/withdraw
POST /api/accounts/transfer
GET /api/accounts/{id}/balance