X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3d919829c017376eeccd27db9908b7f5a6e32aa..7178ac911e7b160c1348da404b5aa07b9829d3c8:/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..759db9ef2c 100644 --- a/apps/workbench/app/views/application/_show_api.html.erb +++ b/apps/workbench/app/views/application/_show_api.html.erb @@ -1,5 +1,8 @@ <% if @object.andand.uuid %> +
+
curl
+
 curl -X PUT \
  -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \
@@ -9,19 +12,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 %> +
+