This is the second post in a series of blog posts on how to secure REST-based services built on WCF and ASP.NET. One possible use case would be that we are hosting an OAUTH resource server where a third-party client has been issued a token by an authorization server with the approval of the resource [...]
Secure your REST-based WCF service with WIF, part 2
January 28th, 2012 by Stefan Severin — .Net
Secure your REST-based WCF service with WIF, part 1
January 5th, 2012 by Stefan Severin — .Net
In this particular scenario we have a REST API built on WCF and ASP.NET which exposes resources owned by some imaginary users, and we want to make their resources accessible to third-party applications (clients) in a secure way. That is, we want to allow our users to grant authorization to clients requesting access to [...]
Simple Parsing of Complex JSON and XML Documents in Java
October 9th, 2011 by Johan Haleby — Java, Testing, Tips & Tricks
In this blog I’m going to demonstrate how to parse and validate more complex JSON and XML documents in Java using the REST Assured framework and the XmlPath and JsonPath components available in this framework. Since REST Assured is implemented in Groovy it can be really beneficial to take advantage of Groovy’s collection API. Let’s [...]
Multipart Form Data File Uploading Made Simple with REST Assured
September 15th, 2011 by Johan Haleby — Java, Testing, Tips & Tricks
From a client perspective it has always seemed to me that uploading a large file or stream to a server using multi-part form data encoding in Java is overly complex. To address this I implemented support for it in REST Assured 1.3. Example Let’s say you have a simple HTML page that performs file-uploading from [...]
Tags: automated testing, http, rest
Is your REST assured?
June 4th, 2011 by Johan Haleby — Java, Testing, Tips & Tricks
A couple of months ago I introduced a new open source Java framework for simple automated testing of REST/HTTP services called REST Assured. A lot of things have happended to the framework since then and it’s now better than ever. In this blog I’m going to summarize some of the most important new features that [...]
Tags: automated testing, Java, rest, test
REST Assured – Or how to easily test REST services in Java
December 27th, 2010 by Johan Haleby — Java, Testing
Testing and validating REST services in Java is harder than in dynamic languages such as Ruby and Groovy. REST Assured is a Java DSL (built on top of HTTP Builder) that brings the simplicity of these languages into the Java domain. Example 1 – JSON Assume that a GET request to http://localhost:8080/lotto returns JSON as: [...]
Tags: automated testing, frameworks, Java, rest
Neo4j .NET Client over HTTP using REST and json
April 16th, 2010 by Magnus Mårtensson — .Net, Architecture, Cloud
Here it is; a Proof of Concept of the world’s first Neo4j .NET Client. In other words: Here follows a discussion on how to create a client library for communicating with a graph database over REST. UPDATE: There is now a live CodePlex project for the realization of this concept; A .NET Client Library for [...]
Tags: .Net, httpclient, json, neo4j, rest
REST and XML using Spring MVC and Groovy
April 9th, 2010 by Mattias Hellborg Arthursson — Java
There’s one particular thing Groovy is really good for and that is working with XML. When I started playing around with the REST support in the latest version of Spring MVC I wanted to try using Spring for the controller infrastructure and delegate to Groovy for producing XML responses. It turned out this wasn’t as [...]
