1

Im trying to get the records with id's greater than 1000 let's say. and I'm using unirest in java. I've tried to use queryString but it did not work.

HttpResponse<JsonNode> responsePatientTest = Unirest.get(Util.URL + "/sometable")
            .queryString("Id","> 1000" )
            .basicAuth("user", "pass")
            .asJson();

maybe it's because I'm not familiar with unirest. is there a way to do this with queryString? if not,Could you suggest another way?

3
  • What about the server side support? If the backend just don't support this kind of query, unirest, as a http client, really can't do much then. Commented Oct 3, 2018 at 12:07
  • you mean how database is actualy implemented? I don't know much about that.in what case I'm able to use a query like this? Commented Oct 3, 2018 at 12:52
  • 1
    Um, look, you send a request, which must be handled by your backend. To handle the request, the backend must understand what you have sent in the first hand right? I'm now asking if your backend understand a url like https://my.site/sometable?Id=> 1000. I seriously doubt if this is the case. If the backend isn't written by you, ask your backend guy for an explaination on their APIs. Commented Oct 3, 2018 at 13:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.