Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples.md to include Powershell for each example #213

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

aaronjohnson
Copy link
Contributor

@aaronjohnson aaronjohnson commented Oct 23, 2024

This pull request updates the docs/api/central/examples.md file to provide PowerShell alternatives for various API operations, alongside the existing shell curl examples. The changes also include a note about potential issues when using curl in PowerShell.

Documentation Enhancements:

  • Added a note about potential errors when using curl within PowerShell, explaining the differences and suggesting alternatives like Invoke-WebRequest or curl.exe. (docs/api/central/examples.md)

PowerShell Examples:

  • Added PowerShell example for listing current networks using Invoke-WebRequest. (docs/api/central/examples.md)
  • Added PowerShell example for listing network members using Invoke-WebRequest. (docs/api/central/examples.md)
  • Added PowerShell example for authorizing a network member using Invoke-WebRequest. (docs/api/central/examples.md)
  • Added PowerShell example for deauthorizing a network member using Invoke-WebRequest. (docs/api/central/examples.md)

Now with more Powershell examples.   1:1 with shell
glimberg
glimberg previously approved these changes Oct 23, 2024
@aaronjohnson
Copy link
Contributor Author

A repeatable error I need help with decipering,

https://github.com/zerotier/docs/actions/runs/11488030334

@glimberg
Copy link
Contributor

There needs to be a blank line before and after each

```
...code
```

block

@aaronjohnson
Copy link
Contributor Author

There needs to be a blank line before and after each

...code

block

Right on. Thank you

@laduke
Copy link
Contributor

laduke commented Oct 23, 2024

see readme to iterate locally

@aaronjohnson aaronjohnson marked this pull request as draft October 23, 2024 21:17
@aaronjohnson aaronjohnson marked this pull request as ready for review October 23, 2024 21:26
@aaronjohnson
Copy link
Contributor Author

Follow on from related PR #212

@aaronjohnson aaronjohnson merged commit 7261b22 into main Oct 23, 2024
1 check passed
@aaronjohnson aaronjohnson deleted the aaronjohnson-patch-1-expanding-powershell-examples branch October 23, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants