REST Assured

Build Status Maven Central

Testing and validating REST services in Java is harder than in dynamic languages such as Ruby and Groovy. REST Assured brings the simplicity of using these languages into the Java domain. For example, if your HTTP server returns the following JSON at “http://localhost:8080/lotto/{id}”:


You can easily use REST Assured to validate interesting things from the response:

@Test public void
lotto_resource_returns_200_with_expected_id_and_winners() {

            get("/lotto/{id}", 5).
            body("lotto.lottoId", equalTo(5),
                 "", hasItems(23, 54));


Looks easy enough? Why not give it a spin? See getting started and usage guide.

Fork me on GitHub



  • 2023-09-08: REST Assured 5.3.2 is released with several bug fixes, better Spring MockMvc Support, better support for newer versions of Spring Security etc. See change log for more details.
  • 2023-06-16: REST Assured 5.3.1 is released with several bug fixes and dependency upgrades. See change log for more details.
  • 2022-11-18: REST Assured 5.3.0 is released. It adds CSRF header support and a much improved CSRF support in general. It also brings the Spring MockMvc Module up-to-date with changes in Spring Framework 6 and Spring Boot 3, as well as various other bug fixes and improvements. See changelog for more details.

Click here for older news.

Release Notes


REST Assured is developed and maintained by Johan Haleby with the help of numerous other contributors over the years. Would you like to contribute to the project in any way? Submit a pull request or contact Johan at Twitter.

Johan started the project when he was working at Jayway back in December of 2010. The project is now sponsored by Parkster.