rest-assured/src/main/java/io/restassured/builder/ResponseSpecBuilder.java
public ResponseSpecBuilder rootPath(String rootPath, List<Argument> arguments) {
        spec.root(rootPath, arguments);
        return this;
    }
public ResponseSpecBuilder rootPath(String rootPath, List<Argument> arguments) {
        spec.root(rootPath, arguments);
        return this;
    }
public ResponseSpecBuilder rootPath ( String rootPath , List < Argument > arguments ) { spec . root ( rootPath , arguments ) ; return this ; }
Set the root path of the response body so that you don't need to write the entire path for each expectation. The same as {@link #rootPath(String)}
but also provides a way to defined arguments.

@param rootPath  The root path to use.
@param arguments The arguments.
@see ResponseSpecification#root(String, java.util.List)
Set the root path of the response body so that you don t need to write the entire path for each expectation . The same as { @link #rootPath ( String ) } but also provides a way to defined arguments .