Simple ToDoApp
Install:
- SQL SERVER 2017 EXPRESS EDITION
- Visual Studio 2017 or higher
- Postman
- .NET Core 2.2.0
-
Inside Solution Explorer find and open 'appsettings.json'
-
Replace line "DbConnection" with your own connection string
"DbConnection": "Server="your server";database="Dbname";"
-
Go to Tools -> NuGet Package Manager -> Package Manager Console
-
Make sure that Default project is set to "WebApi" and type belowed command
Update-Database
- Run WebApi using IIS Express
- Open ToDoApp/WebApp/pages/index.html in browser
- Open Postman
- Change Method to Post
- Insert link inside the bar
https://localhost:44325/api/AddPerson
- Inside Body insert
{
"pesel": "97012548731",
"name": "Janusz",
"surname": "Fasola"
}
- Send request
- To add new task fill required fields and type pesel number inside "Assigned to" field.