Everything is a resource with a URL
A resource is a "thing" your API manages — a product, an order, a customer. Each one gets an address. Nouns in the URL, plural, no verbs — the verb comes from the HTTP method.
https://myshop.com/api/products ← ALL products
https://myshop.com/api/products/5 ← product #5
https://myshop.com/api/products/5/reviews
← its reviews
// ✔ GOOD — nouns, plural, ids in the path
GET /api/products/5
DELETE /api/products/5
// ✘ BAD — verbs in the URL, actions as paths
GET /api/getProduct?id=5
GET /api/products/delete/5 ← crawler bait!