Rest API - Batch and Bulk Operations
Given this batch create endpoint code snippet, what will be the response if one item is invalid?
POST /items/batch
Request body: [{"name": "item1"}, {"name": ""}]
Response: 400 Bad Request
{
"error": "Validation failed",
"details": [{"index": 1, "message": "Name cannot be empty"}]
}