Local instance of MySQL/MariaDB (run dbinit.sql)
Local install of dotnet core
$ dotnet restore
$ dotnet run dev
$ sudo ./backend
$ dotnet publish -c Release -r ubuntu.18.04-x64
View tasks
GET: http://localhost:5000/api/todo
Create new task and insert into db
POST: http://localhost:5000/api/todo
{
"title": "Task title",
"body": "task description"
}
Update task
PUT: http://localhost:5000/api/todo/:todoId
{
"title": "Task title",
"body": "task description"
}
Delete task
DELETE: http://localhost:5000/api/todo/:todoId
Check if user is logged in, if so return username
GET: http://localhost:5000/api/person
Attempt to login
POST: http://localhost:5000/api/person
{
"username": "drum",
"password": "password"
}
Register
POST: http://localhost:5000/api/person/register
{
"username": "drum",
"password": "password"
}
Logout user and clear session
POST: http://localhost:5000/api/person/logout