William Cheng 372894dd1d
Add powershell echo test, rename api key names (#17043)
* add powershell echo test, rename api key names

* update
2023-11-13 00:09:46 +08:00

1.4 KiB

PSOpenAPITools.PSOpenAPITools\Api.AuthApi

All URIs are relative to http://localhost:3000

Method HTTP request Description
Test-AuthHttpBasic POST /auth/http/basic To test HTTP basic authentication

Test-AuthHttpBasic

String Test-AuthHttpBasic

To test HTTP basic authentication

To test HTTP basic authentication

Example

# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: http_auth
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"


# To test HTTP basic authentication
try {
    $Result = Test-AuthHttpBasic
} catch {
    Write-Host ("Exception occurred when calling Test-AuthHttpBasic: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
    Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

http_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]