<%= t('.title') %>
<%= form_tag diagnosis_path do %>
<% flash.each do |key, value| %>
<%= value %>
<% end %>
<%= label_tag t('.method'), nil, class: 'col-sm-2 col-form-label' %>
<%= select_tag :method, options_for_select(Lecter::AVAILABLE_METHODS, Lecter::DEFAULT_METHOD) %>
Choose one
<%= label_tag t('.endpoint'), nil, class: 'col-sm-2 col-form-label' %>
<%= text_field_tag :endpoint, nil, class: 'form-control', placeholder: 'Endpoint' %>
localhost:3000/posts
<%= label_tag t('.headers'), nil, class: 'col-sm-2 col-form-label' %>
<%= text_field_tag :headers, nil, class: 'form-control', placeholder: 'Headers' %>
content_type=text/html,accept=*/*
<%= label_tag t('.body_raw'), nil, class: 'col-sm-2 col-form-label' %>
<%= text_area_tag :body_raw, nil, rows: 10, class: 'form-control', placeholder: 'Body(raw)' %>
"post" => {
"title" => "New title",
"description" => "Desciption"
}
<%= submit_tag t('.send'), class: 'btn btn-primary' %>
<% end %>