ASP.NET Core 8 to run the backend service.
CosmosDB is to store the API setup.
-
Host the application whereever you want ;) . Preferably in azure ! best choice is App Service. Sinple.
-
Configure CosmosDB NoSQL container.
I. Create CosmosDB NoSQL Instance
II. Create database "fakeit-store"
III. Create container "api-master"
=> Set partition key as "/project_name".
=> Set unique key by combining "/url" and "/http_methode".
Here is an example from my setup !
-
Set the Cosmos connection string in appsettings. Keep the DatabaseId as it is.
"CosmosDb": { "ConnectionString": "", "DatabaseId": "fakeit-store" }
-
Browser www.yourhost.com/swagger and have fun !