1 import java.io.IOException;
3 import org.json.JSONException;
4 import org.json.JSONObject;
5 import org.opendaylight.mwtn.base.database.HtDatabaseWebAPIClient;
7 public class ESWebAPITest {
9 public static void main(String[] args)
11 HtDatabaseWebAPIClient client=new HtDatabaseWebAPIClient();
13 String response=client.sendRequest("/mwtn/mediator-server/_search", "GET", new JSONObject("{\"match\":{\"id\":id}}"));
14 System.out.println(response);
15 } catch (JSONException | IOException e) {
16 // TODO Auto-generated catch block