mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-25 03:46:35 +00:00
for curl fix next line issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user