Quiz 3 Question 1 of 20

A platform team reviews a Python FastAPI service that fronts their network inventory. Clients POST /login first, the server then keeps a session object holding that client's device list, GET /devices returns the cached list, and a delete is triggered with GET /devices?action=delete. Which redesign would make the service follow REST resource naming and statelessness rules?

Select an answer to reveal the explanation.

Motivation