This project supports adding & removing any offer and rooms related from the hotel Riverside, HCM, Vietnam in the site hotels.com, at a specific date.
It applied these followings:
- Symfony
- Behat
- Doctrine ORM
- PHPUnit
- Edit the MySQL config in the file
/app/config/parameters.yml
. - Run the command
php bin/console doctrine:database:create
to create the database. - Run the command
php bin/console doctrine:schema:update --force
to update the database schema. - Run the command
php bin/console server:run
to start the built-in server. Now the project is running.
The project provides 2 APIs:
/api/offers/{date}
: gets and saves room names at a specific date (only supports POST method)./api/offers/{id}
: removes an offer with a specific Id (only supports DELETE method).