Request Path
"@RequestPath"
annotation is applied to those methods offered by libraries that allow to make a request. This annotation is useful to make the request path and its possible path parameters more readable
//with no parameters
= GET, path = "https://play.google.com/store/apps/developer")
public void sendRequest() {
APIRequest apiRequest = new APIRequest();
apiRequest.sendAPIRequest("https://play.google.com/store/apps/developer", GET);
}
//with path parameters
= GET, path = "https://play.google.com/store/apps/developer?{id}", path_parameters = "id")
public void sendRequest() {
APIRequest apiRequest = new APIRequest();
apiRequest.sendAPIRequest("https://play.google.com/store/apps/developer?id=Tecknobit", GET);
}
Content copied to clipboard
Author
N7ghtm4r3 - Tecknobit
Functions
Link copied to clipboard
Link copied to clipboard
body_parameters
body parameters of the request ->
{
parameter : parameter value,
parameter1 : parameter1 value
}
Content copied to clipboard
Link copied to clipboard
method
of the requestLink copied to clipboard
path_parameters
path parameters of the request -> endpoint/{parameter}Link copied to clipboard
query_parameters
query parameters of the request -> endpoint?