15516: Merge branch 'master' into 15516-fix-arvados-server-dependencies
[arvados.git] / services / api / app / controllers / arvados / v1 / pipeline_instances_controller.rb
index 9781caf7e8183f618d33971335ed4d6e38a23ab3..166f71049b249606f3667045b07d2bea1c17639e 100644 (file)
@@ -1,5 +1,19 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class Arvados::V1::PipelineInstancesController < ApplicationController
-  accept_attribute_as_json :components_summary, Hash
   accept_attribute_as_json :components, Hash
   accept_attribute_as_json :properties, Hash
+  accept_attribute_as_json :components_summary, Hash
+
+  def create
+    return send_error("Unsupported legacy jobs API",
+                      status: 400)
+  end
+
+  def cancel
+    return send_error("Unsupported legacy jobs API",
+                      status: 400)
+  end
 end