2525: list resources, methods, and parameters in prompt example to improve user exper...
[arvados.git] / sdk / java / src / main / java / org / arvados / sdk / java / Arvados.java
index 298ee772ad1cb017ed5ebe68c12e6be8c6897ced..a81c3cf8ee846214528bf409d0141a3bea26f527 100644 (file)
@@ -170,7 +170,13 @@ public class Arvados {
     Map<String, RestMethod> methodMap = getMatchingMethodMap (resourceName);
     return (methodMap.keySet());
   }
-  
+
+  public Set<String> getAvailableParametersForMethod(String resourceName, String methodName)
+      throws Exception {
+    RestMethod method = getMatchingMethod(resourceName, methodName);
+    return (method.getParameters().keySet());
+  }
+
   private HashMap<String, Object> loadParameters(Map<String, Object> paramsMap,
       RestMethod method) throws Exception {
     HashMap<String, Object> parameters = Maps.newHashMap();