for curl fix next line issue

This commit is contained in:
Pascal Fischer
2023-05-08 18:51:25 +02:00
parent 4c51e12888
commit 4d189d2e39
12 changed files with 49 additions and 49 deletions

View File

@@ -17,8 +17,8 @@ export const title = 'Peers'
<CodeGroup title="Request" tag="GET" label="/api/peers">
```bash {{ title: 'cURL' }}
curl -X GET https://api.netbird.io/api/peers \
-H "Authorization: Token <TOKEN>" \
-H 'Accept: application/json' \
-H "Authorization: Token <TOKEN>"
```
```js
@@ -251,8 +251,8 @@ echo $response;
<CodeGroup title="Request" tag="GET" label="/api/peers/{peerId}">
```bash {{ title: 'cURL' }}
curl -X GET https://api.netbird.io/api/peers/{peerId} \
-H "Authorization: Token <TOKEN>" \
-H 'Accept: application/json' \
-H "Authorization: Token <TOKEN>"
```
```js
@@ -506,9 +506,9 @@ echo $response;
<CodeGroup title="Request" tag="PUT" label="/api/peers/{peerId}">
```bash {{ title: 'cURL' }}
curl -X PUT https://api.netbird.io/api/peers/{peerId} \
-H "Authorization: Token <TOKEN>" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Token <TOKEN>" \
--data-raw '{
"name": "stage-host-1",
"ssh_enabled": true,
@@ -777,7 +777,7 @@ echo $response;
<CodeGroup title="Request" tag="DELETE" label="/api/peers/{peerId}">
```bash {{ title: 'cURL' }}
curl -X DELETE https://api.netbird.io/api/peers/{peerId} \
-H "Authorization: Token <TOKEN>" \
-H "Authorization: Token <TOKEN>"
```
```js