Design a REST API for an online bookstore
Design the REST API for an online bookstore: customers browse and search books, read reviews, manage a cart and place orders; admins manage the catalog.
A typical framing: "Mobile and web clients and some partner integrations will use this API. Walk me through the resources and endpoints, what requests and responses look like, how you handle errors, pagination and versioning, and how you keep it safe to retry."