REST API description: Difference between revisions

Jump to navigation Jump to search
Line 51: Line 51:
<code>-SkipCertificateCheck</code>
<code>-SkipCertificateCheck</code>


The URL must be passed with the parameter '''-URI''', so the full command is:
The URL must be passed with the parameter '''-Uri''', so the full command is:


<code>Invoke-RestMethod -Uri 'https://allegro-mm-XXXX/...' -Headers @{Authorization = ("Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f 'USER', 'PASSWORD'))))} -ContentType'application/json; charset=utf-8' -Method 'Get' -SkipCertificateCheck</code>
<code>Invoke-RestMethod -Uri 'https://allegro-mm-XXXX/...' -Headers @{Authorization = ("Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f 'USER', 'PASSWORD'))))} -ContentType'application/json; charset=utf-8' -Method 'Get' -SkipCertificateCheck</code>
404

edits

Navigation menu