Tag: rest
All the articles with the tag "rest".
Using REST in NAnt with a custom HTTP Task
Published:3 min readThis article describes how to make HTTP requests to a REST web service from a NAnt script using a custom task. The HttpClient class from the WCF REST Starter Kit is used, and the source code is available on GitHub. The assembly has been merged with the Microsoft.Http.dll dependency making deployment easier.
C# wrapper for the Google AJAX Language API
Published:11 min readThis article discusses a C# wrapper for the Google AJAX Language API, which allows users to translate text using a REST based web service API. The WCF REST Starter Kit and DataContractJsonSerializer are used to make working with the API easier. The code is accompanied by a Visual Studio 2008 solution with full source code.
Bugs in the bit.ly REST API
Published:3 min readThis article discusses bugs found in bit.ly's REST API which prevent users from expanding URLs from its shortened representation by returning XML that includes the hash for the URL as one of the elements, which cannot start with a numeric or punctuation character. It also covers issues with serialization for .NET consumers and how other services in the bit.ly REST API do not suffer the same problem.
Introduction to the HttpClient
Published:7 min readThe HttpClient class simplifies interaction with REST web services by providing constructors, a Send method, extension methods, and methods to receive content, use headers, and send requests asynchronously.