A containerised Go 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": "test@domain.com",
"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 CHALLENGEAPPINSIGHTS_KEY=[Challenge Application Insights Key] # Given by the proctors
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]@[yourServiceBus].servicebus.windows.net/[queuename]
Make sure your policy key is URL Encoded. Use a tool like: https://www.url-encode-decode.com/