Boa noite pessoal!
Estou tentando implementar o webhook com C# .net
Já tentei com:
[HttpPost]
public IActionResult PIXWebhook([FromBody] string body)
[HttpPost]
public IActionResult PIXWebhook([FromForm] string body)
[HttpPost]
public IActionResult PIXWebhook([FromBody] dynamic body)
[HttpPost]
public IActionResult PIXWebhook([FromForm] dynamic body)
[HttpPost]
public IActionResult PIXWebhook([FromBody] object body)
[HttpPost]
public IActionResult PIXWebhook([FromForm] object body)
[HttpPost]
public IActionResult PIXWebhook([FromBody] PIXNotification body) - criei uma classe para ser desserializada
[HttpPost]
public IActionResult PIXWebhook([FromForm] PIXNotification body) - criei uma classe para ser desserializada
Toda vez q utilizo [FromBody] ocorre o erro: 415 Unsupported Media Type
Se alguém tiver uma dica eu agradeço 🙂
Termos mais procurados: