REST Assured Learning Guide

REST Assured Learning Guide

REST Assured is a popular Java tool that makes testing web APIs simple and easy to read. This learning guide uses practical examples to show you how to send requests, check responses and build reliable automated API tests.

REST Assured Learning Guide

REST Assured is a popular Java tool that makes testing web APIs simple and easy to read. This learning guide walks you through practical examples to show you how to send requests, check responses, and build reliable automated API tests.

How to Use This Guide

Each section of the course links to a guide that explains the theory, introduces the API under test and walks through the REST Assured tests. The matching code is in the REST Assured Examples repository on GitHub, so you can run and change the tests while you read.

  • Beginners start at Module 1 and work through the modules in order.
  • Intermediate readers start at Module 4.
  • Advanced readers go straight to the modules they need from Module 7 onward.

Course Modules

ModuleTitleLevelCode
1FoundationsBeginnerReadMe
2Building RequestsBeginnerReadMe
3Validating Responses in DepthBeginner to IntermediateReadMe
4Extracting Values and Mapping ObjectsIntermediateReadMe
5Reusable Specifications and ConfigurationIntermediateReadMe
6Schema and Contract ValidationIntermediateReadMe
7Authentication and Transport SecurityIntermediate to AdvancedReadMe
8Filters and ExtensibilityAdvancedReadMe
9Data-Driven Tests and API WorkflowsAdvancedReadMe
10Stubbing Dependencies with WireMockAdvancedReadMe
11Spring Boot IntegrationAdvancedReadMe
12Real Infrastructure with TestcontainersAdvancedReadMe

Course Examples on GitHub

All of the code for the course is in the REST Assured Examples repository on GitHub. Each course module has its own folder, from module-01 to module-12, with a README that explains what the module covers and how to run its tests. Clone the repository and run the tests as you work through the guide, then change them to see how REST Assured behaves.

git clone https://github.com/javanibble/rest-assured-examples.git

Start the REST Assured Guide →