String response = given().urlEncodingEnabled(false).get("https://jira.atlassian.com:443/rest/api/2.0.alpha1/search?jql=project%20=%20BAM%20AND%20issuetype%20=%20Bug").asString(); ..
String uriPath="/rest/api/2.0.alpha1/search";
RestAssured.baseURI=""https://jira.atlassian.com:443";
String response = given().urlEncodingEnabled(false).and().given().queryParam("","").and().given().get().asString();
Kindly helpWarm RegardsAnurag Gupta
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...
Query Parameters |
Encoded URL |
Decoded URL |
Filter (Mandatory): |
filters=recommendationFor.id%3D%3D5552681_5556861%26recommendedOffering.type%3D%3DaccessoryOffering |
filters=recommendationFor.id==5552681_5556861&recommendedOffering.type==accessoryOffering |
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
Sharing you exact requirement...
Query Parameters
Encoded URL
Decoded URL
Filter (Mandatory):
filters=recommendationFor.id%3D%3D5552681_5556861%26recommendedOffering.type%3D%3DaccessoryOffering
filters=recommendationFor.id==5552681_5556861&recommendedOffering.type==accessoryOffering
Is there any way to send encoded url as query parameter by queryPram method or I have to directly use uri as string ?
On Wednesday, May 24, 2017 at 1:55:58 PM UTC+5:30, Johan Haleby wrote:On Wed, May 24, 2017 at 9:10 AM, Anurag Gupta <anura...@gmail.com> wrote:Hi ,We are automating REST services by REST assured and are developing a framework for the same . In your Java doc I find a way to handle url encoded querry parameters like below .String response = given().urlEncodingEnabled(false).get("https://jira.atlassian.com:443/rest/api/2.0.alpha1/search?jql=project%20=%20BAM%20AND%20issuetype%20=%20Bug").asString(); ..what we are doing here is we are passing full URI as input to get method .But we want to use queryParam method instead of passing full URI so that we can parameterize it later according to requirement . It should be something likeString uriPath="/rest/api/2.0.alpha1/search";
RestAssured.baseURI=""https://jira.atlassian.com:443";
String response = given().urlEncodingEnabled(false).and().given().queryParam("","").and().given().get().asString();I am not sure what to pass in queryParam if query param is encoded as : ?jql=project%20=%20BAM%20AND%20issuetype%20=%20BugHmm it doesn't look like ONE query parameter to me since "=" is not url encoded?--Kindly helpWarm RegardsAnurag Gupta
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.