Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

@ServiceDomain("https://www.alphavantage.co/query")
public class AlphaVantageFinanceService {
@GET public static RestMethod getQuotes;
@GET public RestMethod getQuotes;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,33 @@ public class AuthorizationPostman {

@ContentType(JSON)
@GET("basic-auth")
public static RestMethod postmanAuthBasic;
public RestMethod postmanAuthBasic;

public static RestResponse callPostmanServiceAuthBasic() {
public RestResponse callPostmanServiceAuthBasic() {
return postmanAuthBasic.call();
}

public static RestResponse callPostmanAuthBasic(AuthenticationScheme authenticationScheme) {
public RestResponse callPostmanAuthBasic(AuthenticationScheme authenticationScheme) {
return postmanAuthBasic.data(auth(authenticationScheme)).call();
}

@ContentType(JSON)
@GET("oauth1")
public static RestMethod postmanAuthCustom;
public RestMethod postmanAuthCustom;

public static RestResponse callPostmanServiceCustomAuth() {
public RestResponse callPostmanServiceCustomAuth() {
return postmanAuthCustom.call();
}

public static RestResponse callPostmanCustomAuth(AuthenticationScheme authenticationScheme) {
public RestResponse callPostmanCustomAuth(AuthenticationScheme authenticationScheme) {
return postmanAuthCustom.data(auth(authenticationScheme)).call();
}

@ContentType(JSON)
@GET("digest-auth")
public static RestMethod postmanAuthDigest;
public RestMethod postmanAuthDigest;

public static RestResponse callPostmanDigestAuth(AuthenticationScheme authenticationScheme) {
public RestResponse callPostmanDigestAuth(AuthenticationScheme authenticationScheme) {
return postmanAuthBasic.data(auth(authenticationScheme)).call();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class CurrencyRatesService {


@GET("/latest")
public static RestMethod latest;
public RestMethod latest;

@GET("/{date}")
public static RestMethod historical;
public RestMethod historical;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
@ServiceDomain("https://duckduckgo.com/")
public class DuckDuckGo {
@GET
public static RestMethod simpleGet;
public RestMethod simpleGet;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
public class GQLService {
@POST("/simple/v1/cjrqzet3c0fc30162tgt8wzf4/")
@ContentType(io.restassured.http.ContentType.JSON)
public static RestMethod simple;
public RestMethod simple;

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
public class GoogleSearch {

@GET(value = "search")
public static RestMethod search;
public RestMethod search;

@GET
public RestMethod searchInstanceMethod;

Expand Down
Loading