I have a POST endpoint for creating a product, but I want to create multiple products in one call instead of calling the end point multiple times.
I want to follow the REST API design best practices.
I found this article regarding Web API Batch support.
https://devblogs.microsoft.com/dotnet/introducing-batch-support-in-web-api-and-web-api-odata/
Its from 2013 and I haven't found any examples of how to use it in the latest (.NET 6) so I'm not sure if this method is still recommended?
The other option is to use an endpoint that takes a list of products and process them that way. In the new ASP.NET Web API, how do I design for "Batch" requests?
How are people doing handling batch calls to a REST API? What method do you recommended?