All systems operational … …
--:--:--
// guides & concepts

Learn REST Assured

Beginner

REST Assured Setup with Maven & TestNG

Add the dependency, configure base URI and write your first GET request with response validation.

JavaMavenTestNG
Read guide β†’
Beginner

GET, POST, PUT & DELETE with REST Assured

Write HTTP method tests, pass request bodies as Strings or POJOs and validate status codes.

given/when/thenPOJO
Try it β†’
Intermediate

JsonPath & XmlPath for Response Extraction

Extract nested fields, arrays and attributes from JSON/XML responses using path expressions.

JsonPathXmlPath
Read guide β†’
Intermediate

Request Specification & Response Specification

Centralise headers, auth and base URL into reusable specs to avoid duplication across tests.

RequestSpecBuilderResponseSpecBuilder
Read guide β†’
Advanced

OAuth2 & Bearer Token Authentication

Fetch tokens from an auth endpoint and inject them as headers for secured API test flows.

OAuth2JWTheader()
Read guide β†’
Advanced

Schema Validation with JSON Schema

Assert the full response contract β€” field names, types and required fields β€” using JSON Schema matchers.

matchesJsonSchema()Draft-07
Read guide β†’
// hands-on

Live Practice Lab

πŸ”— Live API Tester (JSONPlaceholder)


…
given()
.baseUri("https://jsonplaceholder.typicode.com")
.header("Content-Type", "application/json")
when()
.get("/posts/1")
then()
.statusCode(200)
.body("userId", equalTo(1));