0

Using ASP.NET Core 7 Minimal API:

[HttpPost("Create")]
public void Create([FromBody] User user)
{
}

Currently it is only able to accept application/x-www-form-urlencoded but I wish it can accept application/json as well.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
s k
  • 4,342
  • 3
  • 42
  • 61

0 Answers0