We're going to create entry documents in an entrylog collection in the database. An HTTP POST request is used to create new items. The response of 201 Created will indicate that the database created the new event.
To use the orchestrate.io database service, each request has a base URL. We can define this with a string like this:
service = "https://api.orchestrate.io"
The https scheme is used so that the Secure Socket Layer (SSL) is used to assure that the data is private between client and server. The host name is api.orchestrate.io. Each request will have a URL based on this base service definition.
The HTTP headers for each request will look like this:
headers = { 'Accept': 'application/json', ...