I have a JSON object and trying to have a post request to my API endpoint.
In my Listing controller I have the following function
[HttpPost]
public async Task<IActionResult> Import(GetImportInput input)
{
return StatusCode(200);
}
GetImportInput.cs
public string Name {get; set;}
Postman details:
ContentType = application/json
Body = {
"name" : "Rabbit"
}
When I put a breakpoint inside my Import method, the breakpoint hits, but the parameter input does not have the value Rabbit. May I ask how do I properly get my postman to send the body so my controller method will pick it up.
Header Tab

