Sha256: 2832bc88c39161c4c96e531e84386e99b874e17a8f9859d289c7da6d372dd8a5

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

<h2>Curl Example</h2>

<pre lang="bash">
$ curl -n <%= example[:request] -%><%- unless example[:http_headers].empty? %> \<%- end -%>
<%- if !example[:data].nil? %>
  <%= example[:data] -%>
<%- end -%>
<%- example[:http_headers].each do |key, value| %>
  -H "<%= key %>: <%= value %>"<%- if key != example[:http_headers].keys.last %> \<%- end -%>
<%- end %>
</pre>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
json-schema-docs-0.3.1 lib/json-schema-docs/layouts/includes/curl_example.html.erb
json-schema-docs-0.3.0 lib/json-schema-docs/layouts/includes/curl_example.html.erb
json-schema-docs-0.2.4 lib/json-schema-docs/layouts/includes/curl_example.html.erb
json-schema-docs-0.2.3 lib/json-schema-docs/layouts/includes/curl_example.html.erb
json-schema-docs-0.2.2 lib/json-schema-docs/layouts/includes/curl_example.html.erb
json-schema-docs-0.2.1 lib/json-schema-docs/layouts/includes/curl_example.html.erb
json-schema-docs-0.2.0 lib/json-schema-docs/layouts/includes/curl_example.html.erb