Skip to content

Commit

Permalink
Add explicit java version setup (#110)
Browse files Browse the repository at this point in the history
* add java setup and add some code to test

* Update API pages with v0.24.3

* removing test code

---------

Co-authored-by: netbirddev <dev@netbird.io>
  • Loading branch information
pascal-fischer and netbirddev authored Nov 24, 2023
1 parent d6c0909 commit 65d4119
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/generate_api_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
- name: Install swagger-codegen
run: brew install swagger-codegen

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Npm install
run: npm install

Expand Down
50 changes: 44 additions & 6 deletions src/pages/ipa/resources/peers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ echo $response;
"dns_label": "stage-host-1.netbird.cloud",
"login_expiration_enabled": false,
"login_expired": false,
"last_login": "2023-05-05T09:00:35.477782Z"
"last_login": "2023-05-05T09:00:35.477782Z",
"accessible_peers_count": 5
}
]
```
Expand Down Expand Up @@ -214,7 +215,8 @@ echo $response;
"dns_label": "string",
"login_expiration_enabled": "boolean",
"login_expired": "boolean",
"last_login": "string"
"last_login": "string",
"accessible_peers_count": "integer"
}
]
```
Expand Down Expand Up @@ -420,7 +422,16 @@ echo $response;
"dns_label": "stage-host-1.netbird.cloud",
"login_expiration_enabled": false,
"login_expired": false,
"last_login": "2023-05-05T09:00:35.477782Z"
"last_login": "2023-05-05T09:00:35.477782Z",
"accessible_peers": [
{
"id": "chacbco6lnnbn6cg5s90",
"name": "stage-host-1",
"ip": "10.64.0.1",
"dns_label": "stage-host-1.netbird.cloud",
"user_id": "google-oauth2|277474792786460067937"
}
]
}
```
```json {{ title: 'Schema' }}
Expand All @@ -447,7 +458,16 @@ echo $response;
"dns_label": "string",
"login_expiration_enabled": "boolean",
"login_expired": "boolean",
"last_login": "string"
"last_login": "string",
"accessible_peers": [
{
"id": "string",
"name": "string",
"ip": "string",
"dns_label": "string",
"user_id": "string"
}
]
}
```
</CodeGroup>
Expand Down Expand Up @@ -718,7 +738,16 @@ echo $response;
"dns_label": "stage-host-1.netbird.cloud",
"login_expiration_enabled": false,
"login_expired": false,
"last_login": "2023-05-05T09:00:35.477782Z"
"last_login": "2023-05-05T09:00:35.477782Z",
"accessible_peers": [
{
"id": "chacbco6lnnbn6cg5s90",
"name": "stage-host-1",
"ip": "10.64.0.1",
"dns_label": "stage-host-1.netbird.cloud",
"user_id": "google-oauth2|277474792786460067937"
}
]
}
```
```json {{ title: 'Schema' }}
Expand All @@ -745,7 +774,16 @@ echo $response;
"dns_label": "string",
"login_expiration_enabled": "boolean",
"login_expired": "boolean",
"last_login": "string"
"last_login": "string",
"accessible_peers": [
{
"id": "string",
"name": "string",
"ip": "string",
"dns_label": "string",
"user_id": "string"
}
]
}
```
</CodeGroup>
Expand Down
18 changes: 12 additions & 6 deletions src/pages/ipa/resources/users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ echo $response;
],
"is_current": true,
"is_service_user": false,
"is_blocked": false
"is_blocked": false,
"issued": "api"
}
]
```
Expand All @@ -200,7 +201,8 @@ echo $response;
],
"is_current": "boolean",
"is_service_user": "boolean",
"is_blocked": "boolean"
"is_blocked": "boolean",
"issued": "string"
}
]
```
Expand Down Expand Up @@ -495,7 +497,8 @@ echo $response;
],
"is_current": true,
"is_service_user": false,
"is_blocked": false
"is_blocked": false,
"issued": "api"
}
```
```json {{ title: 'Schema' }}
Expand All @@ -511,7 +514,8 @@ echo $response;
],
"is_current": "boolean",
"is_service_user": "boolean",
"is_blocked": "boolean"
"is_blocked": "boolean",
"issued": "string"
}
```
</CodeGroup>
Expand Down Expand Up @@ -785,7 +789,8 @@ echo $response;
],
"is_current": true,
"is_service_user": false,
"is_blocked": false
"is_blocked": false,
"issued": "api"
}
```
```json {{ title: 'Schema' }}
Expand All @@ -801,7 +806,8 @@ echo $response;
],
"is_current": "boolean",
"is_service_user": "boolean",
"is_blocked": "boolean"
"is_blocked": "boolean",
"issued": "string"
}
```
</CodeGroup>
Expand Down

0 comments on commit 65d4119

Please sign in to comment.