A Test to create baskets with products on a RESTful-API.
It´s made with Symfony 7.3.
Wir würden gerne sehen, inwiefern du eine einfache REST-API eines Warenkorbes in PHP mit Symfony (ohne API-Platform) umsetzt. Die API muss RESTful sein und folgende Funktionen bieten:
- Einen Warenkorb anlegen
- Einen Artikel in den Warenkorb legen
- Einen Artikel aus dem Warenkorb löschen
- Einen Artikel im Warenkorb editieren
- Den Warenkorb anzeigen lassen
Before beginning with the installation, you will need the following
- PHP >= 8.2
- Composer
- Open your terminal or command prompt
- Navigate to the directory where you want to save the project
- Use the git clone command followed by the repository URL
git clone git@github.com:mapfeiffer/basket-challange.git
cd basket-challange
composer install
composer setup-local-db
- Start the local server with the following command
symfony server:start
- You can use Postman or any other REST client to test the API
- No authentication is required
- Use API documentation
Open the following URL in your browser https://localhost:8000/api/doc or use https://localhost:8000/api/doc.json the JSON version.
composer test:phpunit
composer analyse-and-test
composer run:php-cs-fixer
composer run:phpstan
composer run:php-parallel-lint
composer run:peck