add quickstart for api

This commit is contained in:
Pascal Fischer
2023-05-09 12:17:28 +02:00
parent 4d189d2e39
commit 7f5c373631
13 changed files with 66 additions and 120 deletions

View File

@@ -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