X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3d919829c017376eeccd27db9908b7f5a6e32aa..2ff5dd54e5daf4dfed3dfd07d161681fc87fe8ff:/apps/workbench/app/views/application/_show_api.html.erb diff --git a/apps/workbench/app/views/application/_show_api.html.erb b/apps/workbench/app/views/application/_show_api.html.erb index df271e0591..72cc363127 100644 --- a/apps/workbench/app/views/application/_show_api.html.erb +++ b/apps/workbench/app/views/application/_show_api.html.erb @@ -1,5 +1,12 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% if @object.andand.uuid %> +
curl -X PUT \ -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \ @@ -9,19 +16,31 @@ curl -X PUT \ <%= JSON.pretty_generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}) %> EOF+
-arv --pretty <%= @object.class.to_s.underscore %> get \ +arv <%= @object.class.to_s.underscore %> get \ --uuid <%= @object.uuid %> arv <%= @object.class.to_s.underscore %> update \ --uuid <%= @object.uuid %> \ --<%= @object.class.to_s.underscore.gsub '_', '-' %> '<%= JSON.generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}).gsub("'","'\''") %>'+
import arvados x = arvados.api().<%= @object.class.to_s.pluralize.underscore %>().get(uuid='<%= @object.uuid %>').execute()<% end %> +