25/05/2024
Download Example zip (2.9mb)

The attached example is a .net core 8 web api which uses the usual good stuff as we'd expect in an API. (swagger documentation, basic auth, jwt token auth, memory caching data etc)

Note that the authentication credentials/keys are stored in a static class file called "commonClass.cs".. we should always store sensitive data such as auth keys, usernames, passwords etc in a key vault external to the api... But as this is just a demo system (and to keep the code small), i stuck them in the class .. please remove them if you intend to use this project.