Build REST APIs in a Spring Boot project and push the code to the master branch (timed HackerRank, 2 hours).
Asked in the online assessment stage. Implement equivalent behavior for an in-memory /items resource.
Process requests with process_requests(requests). Each request has method, path, and optionally body. Supported operations are POST /items, GET /items, GET /items/{id}, PUT /items/{id}, and DELETE /items/{id}. Items contain a positive integer id and non-empty string name. Return one response per request as {status, body}.
def process_requests(requests):