Posting with Windows Auth

Problem:
Asp.net core controller method:

[HttpPost]
[Route(“/api/startwf”)]
public async void StartWorkflow([FromBody] WFInitiationDataModel model)

Use powershell to test it:

$data = @{
    "sysName" = "LTPS"        
}

$payload = ConvertTo-Json $data

$url = "http://localhost:5000/api/startwf"
Write-Host "POST:$url"


$response = $payload | Invoke-WebRequest -uri $url -Method Post -UseDefaultCredentials -ContentType "application/json" -TimeoutSec 21600
Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *