136190d6133c8b2be4dba67fbb728e7a5c304f8a
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / test / ESWebAPITest.java
1 import java.io.IOException;
2
3 import org.json.JSONException;
4 import org.json.JSONObject;
5 import org.opendaylight.mwtn.base.database.HtDatabaseWebAPIClient;
6
7 public class ESWebAPITest {
8
9         public static void main(String[] args)
10         {
11                 HtDatabaseWebAPIClient client=new HtDatabaseWebAPIClient();
12                 try {
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
17                         e.printStackTrace();
18                 }
19         }
20 }