API Automation with REST Assured (Part 2)
Part 1 covered REST Assured basics: given/when/then, status code, and simple body assertions. This post (Part 2) goes deeper: advanced assertions with JSON path and matchers, logging request and response, extracting data for chained requests, and organizing tests for CI and long-term maintainability—with Java examples you can adapt to your project.
Advanced assertions with JSON path
REST Assured uses Groovy GPath (similar to JSON path) to navigate the response body. You use dot notation for nested objects and bracket notation for arrays.