Method: Explicit::ApplicationHelper#format_request_example
- Defined in:
- app/helpers/explicit/application_helper.rb
#format_request_example(request:, example:) ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'app/helpers/explicit/application_helper.rb', line 27 def format_request_example(request:, example:) line_break = '<span class="text-white">\</span>' " \#{example.to_curl_lines.join(\" \#{line_break}\\n\")}\n\n # \#{example.response.status} \#{Rack::Utils::HTTP_STATUS_CODES[example.response.status]}\n \#{JSON.pretty_generate(example.response.data)}\n BASH\nend\n".html_safe |