Extend api gen flow to delete old pages (#191)

This commit is contained in:
pascal-fischer
2024-05-16 12:43:41 +02:00
committed by GitHub
parent 503696de09
commit e8d741b0bd
3 changed files with 10 additions and 1304 deletions

View File

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

View File

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