REST API with the following features:
- Ability to create a room with an id, name, number, and occupant (POST .../api/rooms)
- Ability to update a room’s occupant field. (PUT .../api/rooms/{id})
- Ability to delete a room. (DELETE .../api/rooms/{id})
- Ability to get a list of all rooms. (GET .../api/rooms)
Developed with PHP and Slim framework, data is persisted in a mysql database.
Once the source code is downloaded, install the dependencies with Composer.
composer install
Edit .env.local with the mysql parameters.