List Products
Learn how to add a function that will list the products for the user.
We'll cover the following
Now it is time to output a list of products, which could be displayed as the marketplace product catalog. This endpoint should be accessible without credentials. That means we don’t require the user to be logged in to access the data. The corresponding HTTP function for this action is GET
. The controller will execute the show
or index
action based on the arguments sent with the GET
function when the GET
function is used.
Get hands-on with 1400+ tech skills courses.