Community Blog Posts
The Casablanca team is very excited to see the support we have received from the community around this project. Below are links to blog posts written by various contributors. These posts provide some great examples and tips on using the C++ REST SDK.- Using the Microsoft C++ REST SDK by Gaston Hillar on Dr. Dobb's: " In this first article in a two-part series on this C++ REST SDK, I explain how you can use this SDK to consume REST services. In the next article, I'll show how to use the SDK to retrieve and send JSON documents."
- C++ REST SDK in Visual Studio 2013 by Marius Bancila: "The following example shows how to retrieve and display some JSON content. I’m querying google using its REST API."
- Full-fledged client/server example using C++ REST SDK 1.1.0 by Marius Bancila: "In this post I will go a step further and develop a client-server application from scratch using version 1.1.0 of the SDK. This version features an HTTP listener implementation..."
- Bringing RESTful Services to C++ Developers by Sridhar Poduri: "In this article I’ll show how to use the C++ REST SDK to build a simple Windows-based client application that uploads a file to Dropbox, along with a standard C++ class that supports OAuth."
- Using the C++ REST SDK in Windows Store Apps by Sridhar Poduri: "In this article, I’ll discuss how the C++ REST SDK can be integrated within Windows Store apps."
- Using Casablanca to consume a REST API by Nish Sivakumar: "This article quickly demonstrates a skeletal ASP.NET MVC 4 REST web service that is consumed by C++ code that uses Casablanca to do the four common HTTP operations - GET, POST, PUT, and DELETE. It also shows how to parse and create JSON, and also how to use the PPL extensions to write asynchronous code."
- Showing progress for an HTTP download by Nish Sivakumar: "...you can read chunk by chunk and get a percentage based on the total size that you can get off the header. Here’s a code snippet that shows one way of doing this with PPL tasks"
- Getting and parsing JSON data by Nish Sivakumar: "Here’s an example showing how easy it is to make a GET request to a webserver and to extract the response as a string."
- PVS-Studio analysis on the C++ REST SDK by Andrey Karpov :"This is a good code written in a contemporary style employing capabilities of C++11. We have checked it using our static code analyzer PVS-Studio and failed to find at least one significant bug..."