public class Request
Class for creating request. You can extend it using your own endpoint class.
| Modifier and Type | Class and Description |
|---|---|
static class |
Request.Companion
Initiate your default settings.
|
| Modifier and Type | Field and Description |
|---|---|
static Request.Companion |
Companion
Initiate your default settings.
|
| Constructor and Description |
|---|
Request()
Class for creating request. You can extend it using your own endpoint class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHost() |
OAuth1 |
getOAuth1() |
OAuth2 |
getOAuth2() |
java.lang.String |
getProtocol()
This feature will be added on the next version.
|
io.restassured.specification.RequestSpecification |
getRequestSpecification() |
Response |
send(io.restassured.http.Method method,
com.github.aivancioglo.resttest.setters.Setter setters)
Sending your requestSpecification.
|
Response |
send(io.restassured.http.Method method,
java.lang.String path,
com.github.aivancioglo.resttest.setters.Setter setters)
Sending your requestSpecification.
|
void |
set(com.github.aivancioglo.resttest.setters.Setter setters)
Set your own setters.
|
void |
setHost(java.lang.String p) |
void |
setProtocol(java.lang.String p)
This feature will be added on the next version.
|
public static Request.Companion Companion
Initiate your default settings.
public Request()
Class for creating request. You can extend it using your own endpoint class.
public io.restassured.specification.RequestSpecification getRequestSpecification()
public OAuth1 getOAuth1()
public OAuth2 getOAuth2()
public java.lang.String getProtocol()
This feature will be added on the next version.
var protocol = getProperty("protocol", "http") var host = getProperty("host", "")
public void setProtocol(java.lang.String p)
This feature will be added on the next version.
var protocol = getProperty("protocol", "http") var host = getProperty("host", "")
public java.lang.String getHost()
public void setHost(java.lang.String p)
public void set(com.github.aivancioglo.resttest.setters.Setter setters)
Set your own setters.
setters - for your request.public Response send(io.restassured.http.Method method, com.github.aivancioglo.resttest.setters.Setter setters)
Sending your requestSpecification.
method - of your requestSpecification.setters - are setting up requestSpecification specification.public Response send(io.restassured.http.Method method, java.lang.String path, com.github.aivancioglo.resttest.setters.Setter setters)
Sending your requestSpecification.
method - of your request.path - is a path param.setters - are setting up request specification.