I am trying to add multiple entries into my database by using Postman.
My POST-method is made for single entries. Is there a way to do this without writing an extra method for the bulk import?
My bulk data looks like:
[
{ "Lastname": "Test", "Firstname": "Test", "Department": "IT", "Location": "", "Company": "Test"},
{ "Lastname": "Test2", "Firstname": "Test", "Department": "DEV", "Location": "", "Company": "Test"},
{ "Lastname": "Test3", "Firstname": "Test", "Department": "SD", "Location": "", "Company": "Test"}
]
My POST-API looks like this:
[HttpPost]
public async Task<IActionResult> Post([FromBody] Person person)
{
...
}