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

@@ -25,8 +25,8 @@ export const title = 'Tokens'
<CodeGroup title="Request" tag="GET" label="/api/users/{userId}/tokens">
```bash {{ title: 'cURL' }}
curl -X GET https://api.netbird.io/api/users/{userId}/tokens \
-H "Authorization: Token <TOKEN>" \
-H 'Accept: application/json' \
-H "Authorization: Token <TOKEN>"
```
```js
@@ -249,9 +249,9 @@ echo $response;
<CodeGroup title="Request" tag="POST" label="/api/users/{userId}/tokens">
```bash {{ title: 'cURL' }}
curl -X POST https://api.netbird.io/api/users/{userId}/tokens \
-H "Authorization: Token <TOKEN>" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Token <TOKEN>" \
--data-raw '{
"name": "My first token",
"expires_in": 30
@@ -491,8 +491,8 @@ echo $response;
<CodeGroup title="Request" tag="GET" label="/api/users/{userId}/tokens/{tokenId}">
```bash {{ title: 'cURL' }}
curl -X GET https://api.netbird.io/api/users/{userId}/tokens/{tokenId} \
-H "Authorization: Token <TOKEN>" \
-H 'Accept: application/json' \
-H "Authorization: Token <TOKEN>"
```
```js
@@ -693,7 +693,7 @@ echo $response;
<CodeGroup title="Request" tag="DELETE" label="/api/users/{userId}/tokens/{tokenId}">
```bash {{ title: 'cURL' }}
curl -X DELETE https://api.netbird.io/api/users/{userId}/tokens/{tokenId} \
-H "Authorization: Token <TOKEN>" \
-H "Authorization: Token <TOKEN>"
```
```js