mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-25 20:06:35 +00:00
Update api generation workflow (#190)
This commit is contained in:
@@ -53,7 +53,7 @@ import json
|
||||
|
||||
url = "https://api.netbird.io/api/users"
|
||||
|
||||
headers: {
|
||||
headers = {
|
||||
'Accept': 'application/json',
|
||||
'Authorization': 'Token <TOKEN>'
|
||||
}
|
||||
@@ -182,7 +182,10 @@ echo $response;
|
||||
"is_current": true,
|
||||
"is_service_user": false,
|
||||
"is_blocked": false,
|
||||
"issued": "api"
|
||||
"issued": "api",
|
||||
"permissions": {
|
||||
"dashboard_view": "limited"
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -201,7 +204,10 @@ echo $response;
|
||||
"is_current": "boolean",
|
||||
"is_service_user": "boolean",
|
||||
"is_blocked": "boolean",
|
||||
"issued": "string"
|
||||
"issued": "string",
|
||||
"permissions": {
|
||||
"dashboard_view": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -316,7 +322,7 @@ payload = json.dumps({
|
||||
],
|
||||
"is_service_user": false
|
||||
})
|
||||
headers: {
|
||||
headers = {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'Authorization': 'Token <TOKEN>'
|
||||
@@ -485,7 +491,10 @@ echo $response;
|
||||
"is_current": true,
|
||||
"is_service_user": false,
|
||||
"is_blocked": false,
|
||||
"issued": "api"
|
||||
"issued": "api",
|
||||
"permissions": {
|
||||
"dashboard_view": "limited"
|
||||
}
|
||||
}
|
||||
```
|
||||
```json {{ title: 'Schema' }}
|
||||
@@ -502,7 +511,10 @@ echo $response;
|
||||
"is_current": "boolean",
|
||||
"is_service_user": "boolean",
|
||||
"is_blocked": "boolean",
|
||||
"issued": "string"
|
||||
"issued": "string",
|
||||
"permissions": {
|
||||
"dashboard_view": "string"
|
||||
}
|
||||
}
|
||||
```
|
||||
</CodeGroup>
|
||||
@@ -608,7 +620,7 @@ payload = json.dumps({
|
||||
],
|
||||
"is_blocked": false
|
||||
})
|
||||
headers: {
|
||||
headers = {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'Authorization': 'Token <TOKEN>'
|
||||
@@ -769,7 +781,10 @@ echo $response;
|
||||
"is_current": true,
|
||||
"is_service_user": false,
|
||||
"is_blocked": false,
|
||||
"issued": "api"
|
||||
"issued": "api",
|
||||
"permissions": {
|
||||
"dashboard_view": "limited"
|
||||
}
|
||||
}
|
||||
```
|
||||
```json {{ title: 'Schema' }}
|
||||
@@ -786,7 +801,10 @@ echo $response;
|
||||
"is_current": "boolean",
|
||||
"is_service_user": "boolean",
|
||||
"is_blocked": "boolean",
|
||||
"issued": "string"
|
||||
"issued": "string",
|
||||
"permissions": {
|
||||
"dashboard_view": "string"
|
||||
}
|
||||
}
|
||||
```
|
||||
</CodeGroup>
|
||||
@@ -847,7 +865,7 @@ import json
|
||||
|
||||
url = "https://api.netbird.io/api/users/{userId}"
|
||||
|
||||
headers: {
|
||||
headers = {
|
||||
'Authorization': 'Token <TOKEN>'
|
||||
}
|
||||
|
||||
@@ -1011,7 +1029,7 @@ import json
|
||||
|
||||
url = "https://api.netbird.io/api/users/{userId}/invite"
|
||||
|
||||
headers: {
|
||||
headers = {
|
||||
'Authorization': 'Token <TOKEN>'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user