blob: 30034afeccb870b934cb40fe57f834ab0e9899e8 [file] [log] [blame]
Nils Diewald1d2903f2014-11-03 22:31:20 +00001% use JSON::XS;
2
Nils Diewald8f4b5da2014-12-03 22:13:39 +00003% if (stash('test_port') && search->api_request) {
Nils Diewalde99d9042014-11-20 23:36:54 +00004<pre class="query api" onclick="this.classList.toggle('active')">
Nils Diewald1d2903f2014-11-03 22:31:20 +00005 <span>API Response for </span>
Nils Diewald8f4b5da2014-12-03 22:13:39 +00006 <span style="font-size: 70%"><%= search->api_request %></span>
Nils Diewald1d2903f2014-11-03 22:31:20 +00007 <code>
Nils Diewald8f4b5da2014-12-03 22:13:39 +00008%= search->api_response
Nils Diewald1d2903f2014-11-03 22:31:20 +00009 </code>
10</pre>
11%= javascript begin
12hljs.initHighlightingOnLoad();
Nils Diewald1d2903f2014-11-03 22:31:20 +000013% end
14% };