title: How to specify RESTful request parameters in UriBuilder.fromUri?
body: <p>I am new to RESTful webservices. I am trying to get a JSON file from a RESTful web service of RIPE Atlas. The URL of the API is <a href="https://stat.ripe.net/data/abuse-contact-finder/data.json?resource=193/23" rel="nofollow">https://stat.ripe.net/data/abuse-contact-finder/data.json?resource=193/23</a>. Please find my code below for retrieving the JSON file:</p>
  
  <pre><code>      WebResource service = client.resource(UriBuilder.fromUri("https://stat.ripe.net/data/abuse-contact-finder/data.json").build());
        // getting JSON data
        System.out.println(service.path("resource=193/23").accept(MediaType.APPLICATION_JSON).get(String.class));
  </code></pre>
  
  <p>In this above case, I am getting 400 Bad request from the server. When i gave the complete URL, along with the request parameter "?resource=193/23" in 'fromUri', it is working fine. But when I specified the request parameter in the 'service.path' like above, it is not. What am I doing wrong? I am sure this is a silly question, forgive my ignorance, but could someone please guide me in the right direction?</p>