This was implemented with the guidance of the tutorial, Create a web API with ASP.NET CoreCreate a web API with ASP.NET Core.
I used JavaScript to call the web API (Call an ASP.NET Core web API with JavaScript).
The web API is documented using Swagger (Get started with Swashbuckle and ASP.NET Core).
The database used here is an in-memory sqlite3 database.