File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
lib/rspec_api_documentation/views
templates/rspec_api_documentation Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ def response_fields
4949 def requests
5050 super . map do |hash |
5151 hash [ :request_headers_text ] = format_hash ( hash [ :request_headers ] )
52- hash [ :request_query_parameters_text ] = format_hash ( hash [ :request_query_parameters ] )
52+ hash [ :request_query_parameters_text ] = if hash [ :request_query_parameters ] . present?
53+ CGI . unescape ( hash [ :request_query_parameters ] . to_query )
54+ end
5355 hash [ :response_headers_text ] = format_hash ( hash [ :response_headers ] )
5456 if @host
5557 if hash [ :curl ] . is_a? RspecApiDocumentation ::Curl
Original file line number Diff line number Diff line change 2020
2121{ {# requests } }
2222```plaintext
23- { { request_method } } { { request_path } }
24- { { request_headers_text } }
23+ { { request_method } } { {{ request_path } }}
24+ { {{ request_headers_text } }}
2525```
2626{ {/ requests } }
2727
2828#### Parameters
2929
3030{ {# requests } }
3131{ {# request_query_parameters_text } }
32- ```json
33- { { request_query_parameters_text } }
32+ ```plaintext
33+ { {{ request_query_parameters_text } }}
3434```
3535{ {/ request_query_parameters_text } }
3636
You can’t perform that action at this time.
0 commit comments