This is an API based in memory Todo list app that will only track when it is running similer to a Redis database You just need the Microsoft ASP.Net core JWT auth NuGet package
Using the .http file, theres more notes in there to help set it up
You can add /[id] to get a specific todo item which either returns all todoitems or just the one with that id
[
{
"id": 1,
"name": "string",
"isCompleted": true
}
]
Add a todo item to the in-memory database
Adding an item does need Authorization which you can get from another POST request, see {{PLACEHOLDER}}
You can change the name to anything inside the quotes
IsCompleted is bool value either true or false
{
"name": "String",
"IsCompleted": false
}Delete a todo item using the id from the in-memory database
Does require the Authorization header which you can get from another POST request, see {{PLACEHOLDER}}
Change a todo item from to complete to completed or vice versa
{
"id": {{id}},
"name": "String",
"IsCompleted": false
}
This is a mandatory to do anything usful on the api
the default user and passwords are as follows
Admin to do all things
Username: admin
Password: admin123
User to view
Username: user
Password: user123
Add more restrictions for example all end points need Authorization