List Orders
Learn how to list the orders of the client.
We'll cover the following...
Let’s add the index
action to the controller, which will generate the user’s list of orders.
Define the index
action
We will define the index
action by simply adding the action to our controllers in the file app/controllers/api/v1/orders_controller.rb
. ...