This project allows the editing of Customer and Product records via an authorized API.
There is one user with an auth key of auth
. Add X-AUTH-TOKEN
to the header to access the following endpoints.
Use the following endpoints to perform CRUD actions on Customers.
Returns the Customer creation form.
Post the first_name, last_name, and date_of_birth values to the Customer table. Accepts input from both the /customer GET endpoint and an API POST request.
Get the uuid, first_name, last_name, and date_of_birth of the user.
Update the first_name, last_name, and/or date_of_birth of the given user.
Delete the first customer record matching that UUID.
Use the following endpoints to perform CRUD actions on Products.
Returns the Product creation form.
Post the issn, name and customer_uuid values to the Product table. Accepts input from both the /customer GET endpoint and an API POST request.
Get the issn, name and customer_uuid of the product.
Update the issn, name and/or customer_uuid of the given product.
Delete the first customer record matching that ISSN.
Sample User, Customer, and Product data is loaded via the following fixture:
php bin/console doctrine:fixtures:load
There is one command to find pending products.
Execute the following command to find all Products still in the pending
state for over a week:
php bin/console app:pending-products