mirror of
https://github.com/netbirdio/docs.git
synced 2026-05-04 08:16:35 +00:00
Update api generation workflow (#190)
This commit is contained in:
@@ -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>'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user