Petitions to Swagger

0

Good morning, I'm making a website that makes connections to a Velneo database, using Swagger. I managed to consult the database in the following way:

var xmlhttp = new XMLHttpRequest();

xmlhttp.open("GET", $urlEnvio, false);

xmlhttp.setRequestHeader("accept" ,"application/json");
xmlhttp.setRequestHeader("content-type" ,"application/json");

xmlhttp.send( JSON.stringify($datos) );

alert(xmlhttp.response);

where $ urlEnvio is the url that connects with Swagger, and the variable data contains the data coming from a form. The problem is that I do not know how to apply filters to the search, for example that I get the users whose name is one. Can someone guide me? Thank you very much in advance.

    
asked by AntonioMP87 13.04.2017 в 12:26
source

0 answers