async Task<IActionResult> Post([FromBody] IEnumerable<T> entries)
{
if (!ModelState.IsValid) return BadRequest();
await dataProvider.AddEntries(entries);
return Created("[controller]", entries); //uri?
}
I think you would return the URL to the get endpoint.
Обсуждают сегодня