Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 1 | % use JSON::XS; |
| 2 | |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 3 | % if (stash('test_port') && search->api_request) { |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 4 | <pre class="query api" onclick="this.classList.toggle('active')"> |
Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 5 | <span>API Response for </span> |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 6 | <span style="font-size: 70%"><%= search->api_request %></span> |
Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 7 | <code> |
Nils Diewald | 8f4b5da | 2014-12-03 22:13:39 +0000 | [diff] [blame] | 8 | %= search->api_response |
Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 9 | </code> |
| 10 | </pre> |
| 11 | %= javascript begin |
| 12 | hljs.initHighlightingOnLoad(); |
Nils Diewald | 1d2903f | 2014-11-03 22:31:20 +0000 | [diff] [blame] | 13 | % end |
| 14 | % }; |