Call the right endpoint in REST Assured field reuse example
Closes gh-324
This commit is contained in:
@@ -90,7 +90,7 @@ public class Payload {
|
||||
.filter(document("books", responseFields(
|
||||
fieldWithPath("[]").description("An array of books")) // <1>
|
||||
.andWithPrefix("[].", book))) // <2>
|
||||
.when().get("/books/1")
|
||||
.when().get("/books")
|
||||
.then().assertThat().statusCode(is(200));
|
||||
// end::book-array[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user