Create Products
Learn how to add the standard HTTP method POST for the Product model in the API.
We'll cover the following...
We'll cover the following...
Creating products is a little more complex because we will need an additional configuration. We will assign the created product to the user who owns the JWT token provided in the HTTP header Authorization.
Add tests
We will implement the functional test that verifies access to the creates method of the Product model. This will be done by adding our code to test/controllers/api/v1/products_controller_tes ...