2525: prompt example
[arvados.git] / sdk / java / ArvadosSDKJavaExampleWithPrompt.java
index 64a77604a4d354704e203571a62eb328f31e7b1d..93ba3aa54040c4d4334be2aa91f55eebae15e9c8 100644 (file)
@@ -34,6 +34,7 @@ public class ArvadosSDKJavaExampleWithPrompt {
 
     System.out.print("Welcome to Arvados Java SDK.");
     System.out.println("\nYou can use this example to call API methods interactively.");
+    System.out.println("\nPlease refer to http://doc.arvados.org/api/index.html for api documentation");
     System.out.println("\nTo make the calls, enter input data at the prompt.");
     System.out.println("When entering parameters, you may enter a simple string or a well-formed json.");
     System.out.println("For example to get a user you may enter:  user, zzzzz-12345-67890");
@@ -68,6 +69,9 @@ public class ArvadosSDKJavaExampleWithPrompt {
 
         // read method parameters
         System.out.println("\nEnter parameter name, value (for example uuid, uuid-value)");
+        System.out.println("\nAvailable parameters are: " + 
+              arv.getAvailableParametersForMethod(resourceName, methodName));
+        
         System.out.print("\n>>> ");
         Map paramsMap = new HashMap();
         String param = "";