Articles api
BASH
1% sails generate api articles

I generated the articles API
Blueprint API
Once the articles API was created, I used the Blueprint API to create article items. I navigated to http://localhost:1337/articles.

/articles

/articles/Create?title=<title>&body=<body>
Push to GitHub
The new code was published to https://haddley-sails.azurewebsites.net after I pushed it to the GitHub repository.

I pushed to GitHub

GitHub action in progress

GitHub action completed
Creating and Destroying items
Once the articles model update was published to Azure, I used the Blueprint API to create and remove (destroy) article items. I navigated to https://haddley-sails.azurewebsites.net/articles.

/articles/Create?...

/articles/Destroy?...

/articles
Azure Cosmos DB API for MongoDB
In the screenshots above I had been using local disk storage with the sails-disk adapter. I updated the application to use the Azure Cosmos DB for MongoDB.

Overview

I updated connections.js

I updated the model

/articles

Data Explorer

I pushed the changes to GitHub

GitHub action in progress

https://haddley-sails.azurewebsites.net/articles connected to Azure Cosmos DB for MongoDB