Open mmcnulty20 opened 3 years ago
In addition to the unchecked boxes above:
GET api/products
route, or a specific search route for searching by name rather than category, it is just important to consider how we will filter that info with our requests.
Sample State
Backend Routes
html
notGET
GET /api/products/:productId
) will be generated as just:id
if you use Rails “resources” methods to generate restful routes rather than manually writing them. Ones in a nested route will be generated as:resource_id
(e.g.:product_id
) if using those same methods.GET /api/users
request has no indication of a particular user and by RESTful convention would be an index actionPOST /api/users
isn’t the sign up page itself but the actual action of creating a new userGET /api/products
request? We can talk about efficiency and limiting how much we returnFrontend Routes
/
route?/products/
the search landing or the category filtering page? They are distinct from each other (this will be part of the conversation about categories - we’ll talk via slack, but you’ll want to build the search landing page first)/product/:productId
route should not be nested under/products
(as an aside, unlike backend routes, feel free to name these wildcards whatever you’d like! :) )/products/:productId/reviews
route that I can find: the reviews are displayed on the product listing page.I know there are a lot of checkboxes here, but these look really great so far!