Skip to content
Browse files

Update formating for curl example and remove --url

  • Loading branch information...
1 parent e9382f7 commit 56225b8123f13ecce3956eca2bb32516ed0120b2 @abtris abtris committed Feb 14, 2014
Showing with 9 additions and 7 deletions.
  1. +9 −7 curl.html
View
16 curl.html
@@ -1,10 +1,12 @@
<section name="curl" class="curl">
- <p class="ioDesc">Request</p>
+ <p class="ioDesc">Request</p>
<pre class="incoming"><code class="language-bash">curl --include \
- <% if @method is 'HEAD' : %> -I \
- <% else if @method isnt 'GET' or @body: %> --request <%= @method %><% end %> \
- --url "<%= @apiUrl %><%= @url %>"<% if @headers: %><% for header,value of @headers: %> \
- --header <%= @helpers.escape "#{header}: #{value}" %><% end %> \
- <% end %><% if @body: %> --data-binary "<%= @body.replace(/(['"])/g, "\\$1") %>" \
- <% end %></code></pre>
+ <% if @method is 'HEAD' : %> -I \
+ <% else if @method isnt 'GET' or @body: %> --request <%= @method %> \
+ <% end %>
+ <% if @headers: %><% for header,value of @headers: %>
+ --header <%= @helpers.escape "#{header}: #{value}" %> \
+ <% end %>
+ <% end %><% if @body: %> --data-binary "<%= @body.replace(/(['"])/g, "\\$1") %>" \
+ <% end %> <%= @apiUrl %><%= @url %></code></pre>
</section>

0 comments on commit 56225b8

Please sign in to comment.
Something went wrong with that request. Please try again.