Test the project
Test the project by debugging it (F5)
Since our application uses Swagger, we should be able to see the screen below:

Post an item
{
"name": "Buy tomatoes",
"description": "By this weekend",
"completed": false
}

Verify success response
Copy the item id, you can again query by sending a Get request:

See all items
Since our API has mechanisms to get all the items, we can execute the same. In case you are signed out of your account you can sign in again using this link: https://cosmos.azure.com/try/

Verify the same in Azure portal
All the data we posted using our web api project will appear in the data explorer on the portal. In case you are signed out of your account you can sign in again using this link: https://cosmos.azure.com/try/

Further reading
If you want to host the web-api project which is running locally on to the cloud, you can do it by taking hints from this article!
Last updated