24 lines
437 B
Plaintext
24 lines
437 B
Plaintext
<% if response.success? %>
|
|
# <%= request.method %> <%= request.path.first(45) %>
|
|
<% if request.params.except(:controller, :action, :format, :id).keys.length > 0 %>
|
|
### Request
|
|
|
|
```
|
|
<%=
|
|
JSON.pretty_generate(request.params.except(:controller, :action, :format, :id))
|
|
%>
|
|
```
|
|
<% end %>
|
|
### Response
|
|
|
|
```
|
|
<%=
|
|
begin
|
|
JSON.pretty_generate(JSON.parse(response.body)).first(500)
|
|
rescue => e
|
|
"Empty Response"
|
|
end
|
|
%>
|
|
```
|
|
<% end %>
|