X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c16a97576716f81c721bcd0c889309cb75e3eb9a..47e59a35d5ed9b2cdb052894d741972324058505:/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
+
 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 command line tool
+
-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("'","'\''") %>'
       
+
+
+
+
Python SDK
+
 import arvados
 
 x = arvados.api().<%= @object.class.to_s.pluralize.underscore %>().get(uuid='<%= @object.uuid %>').execute()
       
<% end %> +
+