add "where" param to discovery doc
authorTom Clegg <tom@clinicalfuture.com>
Fri, 24 May 2013 10:06:43 +0000 (03:06 -0700)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 24 May 2013 10:07:40 +0000 (03:07 -0700)
services/api/app/controllers/application_controller.rb
services/api/app/controllers/arvados/v1/jobs_controller.rb
services/api/app/controllers/arvados/v1/schema_controller.rb

index ee674cbb7ec7c10457a02f45bc46979a87ca61af..e62d8cdf914d2ce66e32e756ce8d7db596b3c7f0 100644 (file)
@@ -328,4 +328,10 @@ class ApplicationController < ActionController::Base
       @remote_ip = request.env['REMOTE_ADDR']
     end
   end
+
+  def self._index_requires_parameters
+    {
+      where: { type: 'object', required: false }
+    }
+  end
 end
index 572a2c18fc84dab8de0dbe79a260fa56a82f42a6..efd08e8398bbdea0be6d396bbaecf11b38a8f6c8 100644 (file)
@@ -51,4 +51,8 @@ class Arvados::V1::JobsController < ApplicationController
     find_objects_for_index
     index
   end
+
+  def self._queue_requires_parameters
+    self._index_requires_parameters
+  end
 end
index 16d83a0a347aa1c44a590a92ad99b286ffa1fa1c..6b5f78cb99befff69b2aa415745f9a779540f6ee 100644 (file)
@@ -208,6 +208,11 @@ class Arvados::V1::SchemaController < ApplicationController
                   type: "string",
                   description: "Query string for searching #{k.to_s.underscore.pluralize}.",
                   location: "query"
+                },
+                where: {
+                  type: "object",
+                  description: "Conditions for filtering #{k.to_s.underscore.pluralize}.",
+                  location: "query"
                 }
               },
               response: {