From 0f239a0fb11ed7db2fe8db1eaa6ad7216169ac34 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 6 Feb 2014 17:48:33 -0800 Subject: [PATCH] Add section headings to API examples. --- .../app/views/application/_show_api.html.erb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/workbench/app/views/application/_show_api.html.erb b/apps/workbench/app/views/application/_show_api.html.erb index df271e0591..1781ab4c00 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,7 +12,12 @@ 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 \
  --uuid <%= @object.uuid %>
@@ -18,10 +26,17 @@ 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 %> +
+
-- 2.30.2