Create Products

Learn how to add the standard HTTP method POST for the Product model in the API.

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 ...