CCirbo / Little_Shop

1 stars 2 forks source link

ENDPOINT --> GET: Items by Merchant ID #14

Open TDManning opened 4 weeks ago

TDManning commented 4 weeks ago

I think we need nested routing for this. I think this is what they call "Relationship Endpoints" later on in the requirements.

GET "/api/v1/merchants/:id/items", to: "merchant_items#index"

(I'm not 100% on this, but I think it will be something similar) - Lito