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

@@ -45,7 +45,7 @@ import json
url = "https://api.netbird.io/api/peers"
headers: {
headers = {
'Accept': 'application/json',
'Authorization': 'Token <TOKEN>'
}
@@ -191,6 +191,7 @@ echo $response;
"approval_required": true,
"country_code": "DE",
"city_name": "Berlin",
"serial_number": "C02XJ0J0JGH7",
"accessible_peers_count": 5
}
]
@@ -227,6 +228,7 @@ echo $response;
"approval_required": "boolean",
"country_code": "string",
"city_name": "string",
"serial_number": "string",
"accessible_peers_count": "integer"
}
]
@@ -291,7 +293,7 @@ import json
url = "https://api.netbird.io/api/peers/{peerId}"
headers: {
headers = {
'Accept': 'application/json',
'Authorization': 'Token <TOKEN>'
}
@@ -436,6 +438,7 @@ echo $response;
"approval_required": true,
"country_code": "DE",
"city_name": "Berlin",
"serial_number": "C02XJ0J0JGH7",
"accessible_peers": [
{
"id": "chacbco6lnnbn6cg5s90",
@@ -478,6 +481,7 @@ echo $response;
"approval_required": "boolean",
"country_code": "string",
"city_name": "string",
"serial_number": "string",
"accessible_peers": [
{
"id": "string",
@@ -594,7 +598,7 @@ payload = json.dumps({
"login_expiration_enabled": false,
"approval_required": true
})
headers: {
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Token <TOKEN>'
@@ -768,6 +772,7 @@ echo $response;
"approval_required": true,
"country_code": "DE",
"city_name": "Berlin",
"serial_number": "C02XJ0J0JGH7",
"accessible_peers": [
{
"id": "chacbco6lnnbn6cg5s90",
@@ -810,6 +815,7 @@ echo $response;
"approval_required": "boolean",
"country_code": "string",
"city_name": "string",
"serial_number": "string",
"accessible_peers": [
{
"id": "string",
@@ -879,7 +885,7 @@ import json
url = "https://api.netbird.io/api/peers/{peerId}"
headers: {
headers = {
'Authorization': 'Token <TOKEN>'
}