Routing:
- GET /classrooms get classroom list
- GET /classrooms/1 get the first classroom
- POST /classrooms/ create classroom ({"name": "third classroom", "dateCreated":"21.11.2020","isActive":1})
- PUT /classrooms/1 ({"name": "third classroom", "dateCreated":"21.11.2020","isActive":1})
- PUT /classrooms/1/activate set active status for a classroom
- PUT /classrooms/1/deactivate set not-active status for a classroom
Run app:
Rename .env.dist to .env and set your parameters
RUN composer install
RUN docker-compose up
RUN docker exec -it swivl_php bash
In container from prev step run bin/console doctrine:migrations:migrate
Your app on http://127.0.0.1:8888/classrooms/
Some styling fixes are avoided for time saving (usually such problem doesn't exist because it's automated)
Core and rest layers are devided for future app modifications