Skip to content

Commit 425f939

Browse files
committed
Request and response content types were mixed up in the html example
1 parent 38d67bc commit 425f939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/rspec_api_documentation/html_example.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
109109
{{# request_body }}
110110
<h4>Body</h4>
111-
<div class="request body" data-content-type="{{ response_content_type }}"><textarea>{{{ request_body }}}</textarea></div>
111+
<div class="request body" data-content-type="{{ request_content_type }}"><textarea>{{{ request_body }}}</textarea></div>
112112
{{/ request_body }}
113113
114114
{{# curl }}
@@ -124,7 +124,7 @@
124124
<pre class="response status">{{ response_status }} {{ response_status_text}}</pre>
125125
{{# response_body }}
126126
<h4>Body</h4>
127-
<div class="response body" data-content-type="{{ request_content_type }}"><textarea>{{{ response_body }}}</textarea></div>
127+
<div class="response body" data-content-type="{{ response_content_type }}"><textarea>{{{ response_body }}}</textarea></div>
128128
{{/ response_body }}
129129
{{/ response_status }}
130130
{{/ requests }}

0 commit comments

Comments
 (0)