mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-21 09:56:35 +00:00
add quickstart for api
This commit is contained in:
@@ -18,7 +18,7 @@ export const title = 'Peers'
|
||||
```bash {{ title: 'cURL' }}
|
||||
curl -X GET https://api.netbird.io/api/peers \
|
||||
-H 'Accept: application/json' \
|
||||
-H "Authorization: Token <TOKEN>"
|
||||
-H 'Authorization: Token <TOKEN>'
|
||||
```
|
||||
|
||||
```js
|
||||
@@ -252,7 +252,7 @@ echo $response;
|
||||
```bash {{ title: 'cURL' }}
|
||||
curl -X GET https://api.netbird.io/api/peers/{peerId} \
|
||||
-H 'Accept: application/json' \
|
||||
-H "Authorization: Token <TOKEN>"
|
||||
-H 'Authorization: Token <TOKEN>'
|
||||
```
|
||||
|
||||
```js
|
||||
@@ -508,7 +508,7 @@ echo $response;
|
||||
curl -X PUT https://api.netbird.io/api/peers/{peerId} \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H "Authorization: Token <TOKEN>" \
|
||||
-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