File tree 2 files changed +7
-5
lines changed
lib/rspec_api_documentation/views
templates/rspec_api_documentation
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ def response_fields
49
49
def requests
50
50
super . map do |hash |
51
51
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
53
55
hash [ :response_headers_text ] = format_hash ( hash [ :response_headers ] )
54
56
if @host
55
57
if hash [ :curl ] . is_a? RspecApiDocumentation ::Curl
Original file line number Diff line number Diff line change 20
20
21
21
{ {# requests } }
22
22
```plaintext
23
- { { request_method } } { { request_path } }
24
- { { request_headers_text } }
23
+ { { request_method } } { {{ request_path } }}
24
+ { {{ request_headers_text } }}
25
25
```
26
26
{ {/ requests } }
27
27
28
28
#### Parameters
29
29
30
30
{ {# requests } }
31
31
{ {# request_query_parameters_text } }
32
- ```json
33
- { { request_query_parameters_text } }
32
+ ```plaintext
33
+ { {{ request_query_parameters_text } }}
34
34
```
35
35
{ {/ request_query_parameters_text } }
36
36
You can’t perform that action at this time.
0 commit comments