using Microsoft.AspNetCore.Mvc; using System.Text.Json; namespace NeDvachAPI.Controllers { [ApiController] [Route("[controller]")] public class TestPostingController : ControllerBase { [HttpPost(Name = "TestPostPosts")] public Post ReceivePost([FromBody] Post ReceivedPost) { //DBchat.SendPost(ReceivedPost); return ReceivedPost; } } }