|
@@ -62,7 +62,7 @@ discard block |
|
|
block discarded – undo |
|
62
|
62
|
global $base_url; |
|
63
|
63
|
|
|
64
|
64
|
header('Content-Type: application/json'); |
|
65
|
|
- $json_output = (string) $this->httpClient->get($base_url . '/api/node/article')->getBody(); |
|
|
65
|
+ $json_output = (string) $this->httpClient->get($base_url.'/api/node/article')->getBody(); |
|
66
|
66
|
$json_pretty = json_encode(json_decode($json_output), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
|
67
|
67
|
$json_indented_by_2 = preg_replace('/^( +?)\\1(?=[^ ])/m', '$1', $json_pretty); |
|
68
|
68
|
|
|
@@ -71,10 +71,10 @@ discard block |
|
|
block discarded – undo |
|
71
|
71
|
<button class="btn btn-primary button button--primary coh-style-link-button |
|
72
|
72
|
coh-style-link-button-color open-apiModal">Expand API Response</button> |
|
73
|
73
|
<div class="apiResponse"> |
|
74
|
|
- <pre><code class="language-json">' . $json_indented_by_2 . '</code></pre> |
|
|
74
|
+ <pre><code class="language-json">' . $json_indented_by_2.'</code></pre> |
|
75
|
75
|
</div> |
|
76
|
76
|
<div class="apiResponseModal"> |
|
77
|
|
- <pre><code class="language-json">' . $json_indented_by_2 . '</code></pre> |
|
|
77
|
+ <pre><code class="language-json">' . $json_indented_by_2.'</code></pre> |
|
78
|
78
|
</div> |
|
79
|
79
|
</div>', |
|
80
|
80
|
'#attached' => ['library' => ['df_tools_article/main']], |
Please login to merge, or discard this patch.