A containerised .NET Core 2.0 swagger API to capture orders, write them to MongoDb and an AMQP message queue.
Access the Swagger UI at http://[host]/swagger
POST /v1/order HTTP/1.1
Host: [host]:[port]
Content-Type: application/json
{
"EmailAddress": "[email protected]",
"PreferredLanguage": "en"
}
The following environment variables need to be passed to the container:
ENV TEAMNAME=[YourTeamName]
ENV APPINSIGHTS_KEY=[YourCustomApplicationInsightsKey] # Optional, create your own App Insights resource
ENV MONGOURL=mongodb://[mongoinstance].[namespace]
ENV MONGOURL=mongodb://[CosmosDBInstanceName]:[CosmosDBPrimaryPassword]=@[CosmosDBInstanceName].documents.azure.com:10255/?ssl=true&replicaSet=globaldb
ENV AMQPURL=amqp://[url]:5672
ENV AMQPURL=amqps://[policy name]:[policy key]@[youreventhub].servicebus.windows.net/[eventhubname]
Make sure your policy key is URL Encoded. Use a tool like: https://www.url-encode-decode.com/