Creation of a restful api for managing expenses.
- PHP Storm
- SQLite3
- Postman
- PHPCS
composer phpcs
- OpenAPI
composer swagger
- PHPUnit
composer test
- Checkout the repo
composer install
symfony server:start
- Send request to http://127.0.0.1:8000/api/expenses
- Using a tool like Fractal to manage more complex json responses.
- Adding a static analysis tool like PHP Stan or Psalm
Session 1: 3h 45m
Session 2: 2h 45m
Total: 6h 30m
I have implemented a number of unit tests and outlined other testing scenarios as skipped tests.
- Validation rules, length, nullable, etc
- Unit testing validation
- Endpoint integration testing with test database