Add cURL examples for Powershell & Command Prompt #17657
Labels
content
This issue or pull request belongs to the Docs Content team
rest
Content related to rest - overview.
waiting for review
Issue/PR is waiting for a writer's review
Code of Conduct
What article on docs.github.com is affected?
Every REST API reference, the index of which is this.
What part(s) of the article would you like to see updated?
All the examples of REST API endpoint requests.
We should consider some scenarios for Command Prompt & Windows Powershell/Powershell(multi-platform). I've highlighted them below :
\
is for Unix shells,^
and`
are the symbols for making line breaks in Command Prompt & Powershell respectively.curl
is an alias forInvoke-WebRequest
cmdlet in Windows Powershell. So they should typecurl.exe
instead ofcurl
. For more information refer initialsession: remove curl and wget aliases PowerShell/PowerShell#1901.curl -X PUT https://api.github.com/repos/thispsj/thispsj/topics -d '{"names":["about-me"]}'
Invoke-WebRequest
cmdlet of PowerShell.Additional information
As seen in the above screenshot we could add a drop-down list at the marked area containing options : Unix, Command Prompt, Windows Powershell & Powershell. The user can then change the snippet using drop-down which fits best to their platform.
Can give some examples here on request.
The text was updated successfully, but these errors were encountered: