- contentType
Specify the content type of the request.
- body
Specify a byte array request body that'll be sent with the request. This only
works for the POST htt
- get
- when
Syntactic sugar, e.g.
expect().body(containsString("OK")).when().get("/something");
is that sam
- post
- expect
Returns the response specification so that you can setup the expectations on the
response. E.g.
giv
- header
Specify a header that'll be sent with the request e.g:
given().header("username", "John").and().exp
- put
- delete
- then
Returns the response specification so that you can setup the expectations on the
response. E.g.
giv
- config
Define a REST Assured configuration. E.g.
given().config(config().redirect(redirectConfig().followR
- accept
Specify the accept header of the request. This just a shortcut for:
header("Accept", contentType);