stub authentication check
[arvados.git] / app / models / pipeline_invocation.rb
index 98b5494461a102d14859be8ee3e5e3b41932900f..626f5eb5cd66f7a08ad7f8d4a590fa0020947e5f 100644 (file)
@@ -1,11 +1,21 @@
-class PipelineInvocation < ActiveRecord::Base
+class PipelineInvocation < OrvosModel
   include AssignUuid
+  include KindAndEtag
+  include CommonApiTemplate
   serialize :components, Hash
   belongs_to :pipeline, :foreign_key => :pipeline_uuid, :primary_key => :uuid
 
   before_validation :bootstrap_components
   before_validation :update_success
 
+  api_accessible :superuser, :extend => :common do |t|
+    t.add :pipeline_uuid
+    t.add :name
+    t.add :components
+    t.add :success
+    t.add :active
+  end
+
   def progress_table
     begin
       # v0 pipeline format