Build Endpoints
Expose the Order model to the client by adding endpoints.
We'll cover the following
It is now time to prepare the order controller to expose the correct orders. This is a fairly straightforward process.
We will build the following:
- An
index
action to retrieve current user orders. - A
show
action to retrieve a particular order from the current user. - A
create
action to place the order.
Get hands-on with 1400+ tech skills courses.