From 8776d15405927819324d11376e38ee2c37e09417 Mon Sep 17 00:00:00 2001 From: Gideon le Grange Date: Fri, 12 Jul 2013 09:35:03 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b5db90a..d3ffc3b 100644 --- a/README.md +++ b/README.md @@ -24,21 +24,19 @@ A simple example that returns a result: Print all interfaces. ```java -ApiConnection con = ApiConnection.connect("10.0.1.1"); -con.login("admin","password"); List rs = con.execute("/interface/print"); for (Result r : rs) { System.out.println(r); } ``` -The same query, but with the results filtered: Print all interfaces of type 'vlan' +The same query, but with the results filtered: Print all interfaces of type 'vlan'. ```java List rs = con.execute("/interface/print where type=vlan"); ``` -The same query, but we only want certain result fields names Print all interfaces of type 'vlan' and return their name +The same query, but we only want certain result fields names Print all interfaces of type 'vlan' and return their name. ```java List rs = con.execute("/interface/print where type=vlan return name");