-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igo Ventura
committed
Aug 7, 2021
1 parent
0d76a95
commit 4ed288f
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using DemoAPI.Application.Interfaces; | ||
using DemoAPI.Application.ViewModels; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace DemoAPI.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class TransactionsController : ControllerBase | ||
{ | ||
private readonly ITransactionsService _transactionsService; | ||
|
||
public TransactionsController(ITransactionsService transactionsService) | ||
{ | ||
_transactionsService = transactionsService; | ||
} | ||
|
||
[HttpGet] | ||
public TransactionsViewModel GetTransactions() | ||
{ | ||
return _transactionsService.GetTransactions(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# DemoAPI | ||
|
||
## Creating Docker Database | ||
|
||
1. Run the docker command below | ||
|
||
```bash | ||
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=StrongPassword!!" -p 1433:1433 --name mssql -d mcr.microsoft.com/mssql/server:2019-latest | ||
``` | ||
|
||
2. Run, in order, the scripts from **DemoAPI.Infrastructure.Data\DBScripts\** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters