mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 07:26:35 +00:00
Extend api gen flow to delete old pages (#191)
This commit is contained in:
3
.github/workflows/generate_api_pages.yml
vendored
3
.github/workflows/generate_api_pages.yml
vendored
@@ -40,6 +40,9 @@ jobs:
|
||||
- name: Expand openapi.yml
|
||||
run: (cd ./generator && ./expandOpenAPIRef)
|
||||
|
||||
- name: Remove old generated files
|
||||
run: rm -rf src/pages/ipa/resources/*
|
||||
|
||||
- name: Npm install
|
||||
run: npm install
|
||||
|
||||
|
||||
@@ -65,6 +65,11 @@ Be aware that once you close the popup it is impossible to see the plain version
|
||||
|
||||
Once you have created an access token, you can use it to authenticate API requests to NetBird. See [NetBird API](/api/introduction) documentation for detailed usage.
|
||||
|
||||
For example, if you were using the GitHub API, you might include your personal access token like this:
|
||||
For example, if you were using the API, you might include your personal access token like this:
|
||||
|
||||
With this header included, the GitHub API would authenticate your request using your personal access token and grant you access to the resources that the token has been authorized to access.
|
||||
```bash {{ title: 'Example request with personal access token' }}
|
||||
curl https://api.netbird.io/api/users \
|
||||
-H "Authorization: Token {token}"
|
||||
```
|
||||
|
||||
With this header included, the NetBird API would authenticate your request using your personal access token and grant you access to the resources that your user has been authorized to.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user