Update api generation workflow (#190)

This commit is contained in:
pascal-fischer
2024-05-15 21:47:49 +02:00
committed by GitHub
parent 94780de0f2
commit 503696de09
14 changed files with 143 additions and 96 deletions

View File

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