```bash
  <%-
    data = {}
    path = path.gsub(/{([^}]*)}/) {|match| '$' + match.gsub(/[{}]/, '').upcase}
    get_params = []

    if link.has_key?('schema')
      data.merge!(schema.schema_example(link['schema']))

      if link['method'].upcase == 'GET' && !data.empty?
        get_params << Prmd::UrlGenerator.new({schema: schema, link: link, options: options}).url_params
      end
    end
  %>
$ curl -n -X <%= link['method'] %> <%= schema.href %><%= path -%>
<%- if !data.empty? && link['method'].upcase != 'GET' %> \
  -H "Content-Type: <%= options[:content_type] %>" \
  -d '<%= JSON.pretty_generate(data) %>'
<%- elsif !get_params.empty? && link['method'].upcase == 'GET' %> -G \
  -d <%= get_params.join(" \\\n  -d ") %>
<%- end %>

```

```bash
  <%-
    data = {}
    path = path.gsub(/{([^}]*)}/) {|match| '$' + match.gsub(/[{}]/, '').upcase}
    get_params = []

    if link.has_key?('schema')
      data.merge!(schema.schema_example(link['schema']))

      if link['method'].upcase == 'GET' && !data.empty?
        get_params << Prmd::UrlGenerator.new({schema: schema, link: link, options: options}).url_params
      end
    end
  %>
$ curl -n -X <%= link['method'] %> <%= schema.href %><%= path -%>
<%- if !data.empty? && link['method'].upcase != 'GET' %> \
  -H "Content-Type: <%= options[:content_type] %>" \
  -d '<%= JSON.pretty_generate(data) %>'
<%- elsif !get_params.empty? && link['method'].upcase == 'GET' %> -G \
  -H "Content-Type: <%= options[:content_type] %>" \
  -d <%= get_params.join(" \\\n  -d ") %>
<%- end %>

```

Add Header link to GETS with data.
Add Header link to GETS with data.
