Filters out "show", "index" and "destroy" methods from discovery document generation...
authorPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 13 Mar 2014 18:45:40 +0000 (14:45 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 13 Mar 2014 18:45:40 +0000 (14:45 -0400)
redundant with "get", "list" and "delete".

services/api/app/controllers/arvados/v1/schema_controller.rb

index 75f015fd293e45520fab49eb188cae01f88ca174..23706afeed93c189e7558ce8f6519e55f507e590 100644 (file)
@@ -331,7 +331,8 @@ class Arvados::V1::SchemaController < ApplicationController
           if httpMethod and
               route.defaults[:controller] == 'arvados/v1/' + k.to_s.underscore.pluralize and
               !d_methods[action.to_sym] and
-              ctl_class.action_methods.include? action
+              ctl_class.action_methods.include? action and
+              ![:show, :index, :destroy].include?(action.to_sym)
             method = {
               id: "arvados.#{k.to_s.underscore.pluralize}.#{action}",
               path: route.path.spec.to_s.sub('/arvados/v1/','').sub('(.:format)','').sub(/:(uu)?id/,'{uuid}'),