Project description
- Clone repo
- Change directory to project directory
- Run composer:install
- Run php bin/console doctrine:database:create
- Run php bin/console doctrine:schema:create
- Serve /web dir with any web-server like: php -S 0.0.0.0:8001
- To run tests suite
- Run php bin/console doctrine:database:create --env=test
- Run php bin/console doctrine:schema:create --env=test
- Run vendor/bin/simple-phpunit
[POST] /ticket
Parameters:
- departureTime: string, // "01-01-2023 00:00:00"
- sourceAirport: string, // "Source Airport"
- destAirport: string, // "Destination Airport",
- seat: string, // "20"
- passportId: string // "passportId2414"
[DELETE] /ticket
Parameters:
- ticketId: string, // "166"
[POST] /ticket/changeseat
Parameters:
- ticketId: string, // "166"
- seat: string // "16"