Articles api
BASH
1% sails generate api articles
Blueprint API
Once the articles API was created, I used the Blueprint API to create article items. I navigated to http://localhost:1337/articles.
Push to GitHub
The new code was published to https://haddley-sails.azurewebsites.net after I pushed it to the GitHub repository.
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.
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.
















