Skip to content

Commit 4ab8e34

Browse files
committed
Fixes docs - encrypted string
1 parent 05b78bb commit 4ab8e34

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ <h2 id="getschemas">getSchemas</h2>
313313
</blockquote>
314314
<pre class="highlight tab tab-sh"><code>curl -X GET http://localhost:1337/schemas \
315315
-H <span class="hljs-string">'Content-Type: application/json'</span> \
316-
-H <span class="hljs-string">'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'</span>
316+
-H <span class="hljs-string">'X-Connection-Encrypted: ENCRYPTED_STRING'</span>
317317
</code></pre>
318318
<pre class="highlight tab tab-js"><code><span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> fetch(<span class="hljs-string">'http://localhost:1337/schemas'</span>, {
319319
<span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
@@ -353,7 +353,7 @@ <h2 id="gettables">getTables</h2>
353353
</blockquote>
354354
<pre class="highlight tab tab-sh"><code>curl -X GET http://localhost:1337/tables \
355355
-H <span class="hljs-string">'Content-Type: application/json'</span> \
356-
-H <span class="hljs-string">'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'</span>
356+
-H <span class="hljs-string">'X-Connection-Encrypted: ENCRYPTED_STRING'</span>
357357
</code></pre>
358358
<pre class="highlight tab tab-js"><code><span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> fetch(<span class="hljs-string">'http://localhost:1337/tables'</span>, {
359359
<span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
@@ -373,7 +373,7 @@ <h2 id="gettypes">getTypes</h2>
373373
</blockquote>
374374
<pre class="highlight tab tab-sh"><code>curl -X GET http://localhost:1337/types \
375375
-H <span class="hljs-string">'Content-Type: application/json'</span> \
376-
-H <span class="hljs-string">'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'</span>
376+
-H <span class="hljs-string">'X-Connection-Encrypted: ENCRYPTED_STRING'</span>
377377
</code></pre>
378378
<pre class="highlight tab tab-js"><code><span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> fetch(<span class="hljs-string">'http://localhost:1337/types'</span>, {
379379
<span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
@@ -412,7 +412,7 @@ <h2 id="getplugins">getPlugins</h2>
412412
</blockquote>
413413
<pre class="highlight tab tab-sh"><code>curl -X GET http://localhost:1337/plugins \
414414
-H <span class="hljs-string">'Content-Type: application/json'</span> \
415-
-H <span class="hljs-string">'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'</span>
415+
-H <span class="hljs-string">'X-Connection-Encrypted: ENCRYPTED_STRING'</span>
416416
</code></pre>
417417
<pre class="highlight tab tab-js"><code><span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> fetch(<span class="hljs-string">'http://localhost:1337/plugins'</span>, {
418418
<span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
@@ -432,7 +432,7 @@ <h2 id="getconfig">getConfig</h2>
432432
</blockquote>
433433
<pre class="highlight tab tab-sh"><code>curl -X GET http://localhost:1337/config \
434434
-H <span class="hljs-string">'Content-Type: application/json'</span> \
435-
-H <span class="hljs-string">'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'</span>
435+
-H <span class="hljs-string">'X-Connection-Encrypted: ENCRYPTED_STRING'</span>
436436
</code></pre>
437437
<pre class="highlight tab tab-js"><code><span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> fetch(<span class="hljs-string">'http://localhost:1337/config'</span>, {
438438
<span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
@@ -450,7 +450,7 @@ <h2 id="getversion">getVersion</h2>
450450
</blockquote>
451451
<pre class="highlight tab tab-sh"><code>curl -X GET http://localhost:1337/config/version \
452452
-H <span class="hljs-string">'Content-Type: application/json'</span> \
453-
-H <span class="hljs-string">'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'</span>
453+
-H <span class="hljs-string">'X-Connection-Encrypted: ENCRYPTED_STRING'</span>
454454
</code></pre>
455455
<pre class="highlight tab tab-js"><code><span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> fetch(<span class="hljs-string">'http://localhost:1337/config/version'</span>, {
456456
<span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,

docs/source/index.html.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ View and manage your Postgres schemas.
145145
```sh
146146
curl -X GET http://localhost:1337/schemas \
147147
-H 'Content-Type: application/json' \
148-
-H 'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'
148+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
149149
```
150150
```js
151151
const data = await fetch('http://localhost:1337/schemas', {
@@ -198,7 +198,7 @@ View and manage your Postgres tables.
198198
```sh
199199
curl -X GET http://localhost:1337/tables \
200200
-H 'Content-Type: application/json' \
201-
-H 'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'
201+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
202202
```
203203
```js
204204
const data = await fetch('http://localhost:1337/tables', {
@@ -232,7 +232,7 @@ View and manage your Postgres types.
232232
```sh
233233
curl -X GET http://localhost:1337/types \
234234
-H 'Content-Type: application/json' \
235-
-H 'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'
235+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
236236
```
237237
```js
238238
const data = await fetch('http://localhost:1337/types', {
@@ -284,7 +284,7 @@ View and manage your Postgres plugins.
284284
```sh
285285
curl -X GET http://localhost:1337/plugins \
286286
-H 'Content-Type: application/json' \
287-
-H 'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'
287+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
288288
```
289289
```js
290290
const data = await fetch('http://localhost:1337/plugins', {
@@ -318,7 +318,7 @@ View and manage your Postgres config.
318318
```sh
319319
curl -X GET http://localhost:1337/config \
320320
-H 'Content-Type: application/json' \
321-
-H 'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'
321+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
322322
```
323323
```js
324324
const data = await fetch('http://localhost:1337/config', {
@@ -342,7 +342,7 @@ Get your Postgres config.
342342
```sh
343343
curl -X GET http://localhost:1337/config/version \
344344
-H 'Content-Type: application/json' \
345-
-H 'pg: { "host": "DB_HOST", "password": "DB_PASSWORD" }'
345+
-H 'X-Connection-Encrypted: ENCRYPTED_STRING'
346346
```
347347
```js
348348
const data = await fetch('http://localhost:1337/config/version', {

0 commit comments

Comments
 (0)